diff options
author | flipk <flipk@cvs.openbsd.org> | 1997-11-09 23:40:42 +0000 |
---|---|---|
committer | flipk <flipk@cvs.openbsd.org> | 1997-11-09 23:40:42 +0000 |
commit | 96e61afbe4a12ac4fa7d6dec71c05a56587f966b (patch) | |
tree | 500b0e67696128660a3c4b480733c16504e05c3f /lib/libc | |
parent | b90c08aead714ddfff84ac89b5e7167874be50b6 (diff) |
use "(off_t)-1" instead of "-1L" (!)
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/stdio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/stdio.c b/lib/libc/stdio/stdio.c index 8407cb144d4..08d8533f8f9 100644 --- a/lib/libc/stdio/stdio.c +++ b/lib/libc/stdio/stdio.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: stdio.c,v 1.2 1996/08/19 08:33:08 tholo Exp $"; +static char rcsid[] = "$OpenBSD: stdio.c,v 1.3 1997/11/09 23:40:41 flipk Exp $"; #endif /* LIBC_SCCS and not lint */ #include <fcntl.h> @@ -87,7 +87,7 @@ __sseek(cookie, offset, whence) register off_t ret; ret = lseek(fp->_file, (off_t)offset, whence); - if (ret == -1L) + if (ret == (off_t)-1) fp->_flags &= ~__SOFF; else { fp->_flags |= __SOFF; |