mirror of
https://github.com/cc65/cc65.git
synced 2025-08-16 12:27:49 +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:
@@ -26,7 +26,7 @@ long __fastcall__ ftell (register FILE* f)
|
|||||||
|
|
||||||
/* Is the file open? */
|
/* Is the file open? */
|
||||||
if ((f->f_flags & _FOPEN) == 0) {
|
if ((f->f_flags & _FOPEN) == 0) {
|
||||||
_errno = EINVAL; /* File not open */
|
_seterrno (EINVAL); /* File not open */
|
||||||
return -1L;
|
return -1L;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user