mirror of
https://github.com/cc65/cc65.git
synced 2025-01-13 09:31:53 +00:00
Use _seterrno instead of assigning to _errno to make the code shorter.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4694 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
1b71d3fe42
commit
a9ba343e1b
@ -26,7 +26,7 @@ long __fastcall__ ftell (register FILE* f)
|
||||
|
||||
/* Is the file open? */
|
||||
if ((f->f_flags & _FOPEN) == 0) {
|
||||
_errno = EINVAL; /* File not open */
|
||||
_seterrno (EINVAL); /* File not open */
|
||||
return -1L;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user