From: uz Date: Thu, 3 Jun 2010 20:46:08 +0000 (+0000) Subject: Use _seterrno instead of assigning to _errno to make the code shorter. X-Git-Tag: V2.13.3~738 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a9ba343e1bd2641605431dcff6482e2d33d5f5fa;p=cc65 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 --- diff --git a/libsrc/common/ftell.c b/libsrc/common/ftell.c index 4e4746e03..9882cfc05 100644 --- a/libsrc/common/ftell.c +++ b/libsrc/common/ftell.c @@ -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; }