From a9ba343e1bd2641605431dcff6482e2d33d5f5fa Mon Sep 17 00:00:00 2001 From: uz Date: Thu, 3 Jun 2010 20:46:08 +0000 Subject: [PATCH] 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 --- libsrc/common/ftell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5