]> git.sur5r.net Git - cc65/commitdiff
Use _seterrno instead of assigning to _errno to make the code shorter.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 3 Jun 2010 20:46:08 +0000 (20:46 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 3 Jun 2010 20:46:08 +0000 (20:46 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4694 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/ftell.c

index 4e4746e03fc1495b6ff315f388ff82a3848a8225..9882cfc057a18cb87a2f7f8dc850701c24d979dd 100644 (file)
@@ -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;
     }