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
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue