mirror of
https://github.com/cc65/cc65.git
synced 2026-04-26 13:18:31 +00:00
Don't pass mode argument to open() from _fopen().
It isn't necessary, since paravirt.c has a default if the mode isn't pushed onto the stack.
This commit is contained in:
committed by
Oliver Schmidt
parent
f72d355b18
commit
411a5a9483
@@ -15,7 +15,6 @@
|
||||
.include "errno.inc"
|
||||
.include "fcntl.inc"
|
||||
.include "_file.inc"
|
||||
.include "stat.inc"
|
||||
|
||||
|
||||
; ------------------------------------------------------------------------
|
||||
@@ -83,10 +82,7 @@ modeok: ldy #$00
|
||||
tya
|
||||
iny
|
||||
sta (sp),y
|
||||
lda #<(S_IREAD|S_IWRITE)
|
||||
ldx #>(S_IREAD|S_IWRITE)
|
||||
jsr pushax ; Push the "mode" argument onto the stack
|
||||
ldy #6 ; Size of arguments in bytes
|
||||
ldy #4 ; Size of arguments in bytes
|
||||
jsr _open ; Will cleanup the stack
|
||||
|
||||
; Check the result of the open() call
|
||||
|
||||
Reference in New Issue
Block a user