1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-12 12:29:32 +00:00

Some improvements to Atari exec() after review.

This commit is contained in:
Christian Groessler 2016-06-14 20:44:57 +02:00
parent 94ba9575ec
commit d0faf471b8
2 changed files with 3 additions and 6 deletions

View File

@ -33,10 +33,8 @@ notsupp:lda #ENOSYS ; "unsupported system call"
.byte $2C ; bit opcode, eats the next 2 bytes
noiocb: lda #EMFILE ; "too many open files"
jsr incsp2 ; clean up stack
seterr: jsr __directerrno
lda #$FF
tax
rts ; return -1
seterr: jmp __directerrno
; entry point

View File

@ -356,7 +356,6 @@ static void cmd_rename(void)
static void cmd_exec(void)
{
int st;
unsigned char *progname, *arguments;
progname = strtok(args, " \t\n");
@ -367,7 +366,7 @@ static void cmd_exec(void)
arguments = strtok(NULL, "");
/*printf("exec: %s %s\n", progname, arguments ? arguments : "");*/
st = exec(progname, arguments);
(void)exec(progname, arguments);
printf("exec error: %s\n", strerror(errno));
}