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:
uz 2010-06-03 20:46:08 +00:00
parent 1b71d3fe42
commit a9ba343e1b

View file

@ -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;
} }