diff options
author | 1997-11-09 23:40:41 +0000 | |
---|---|---|
committer | 1997-11-09 23:40:41 +0000 | |
commit | b52f16d0d2e38de9254b9ea5f04d840a5b5192f4 (patch) | |
tree | 37ed1f826005640d1da314c247dc643111efa7e7 /lib/libc/stdio/stdio.c | |
parent | Don't panic on sync, based on changes from ext2fs_vfsops.c and ffs_vfsops.c (diff) | |
download | wireguard-openbsd-b52f16d0d2e38de9254b9ea5f04d840a5b5192f4.tar.xz wireguard-openbsd-b52f16d0d2e38de9254b9ea5f04d840a5b5192f4.zip |
use "(off_t)-1" instead of "-1L" (!)
Diffstat (limited to 'lib/libc/stdio/stdio.c')
-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; |