diff options
| author | 2015-11-09 16:42:35 +0000 | |
|---|---|---|
| committer | 2015-11-09 16:42:35 +0000 | |
| commit | 8086c53d3b36b382571d6d88c742d2784883e025 (patch) | |
| tree | 456d2fd5c52ca12c1c5aaac3e46a669172de3bc7 /usr.bin/less/edit.c | |
| parent | error() is not a stdarg function, so there is no reason for NULL_PARG (diff) | |
| download | wireguard-openbsd-8086c53d3b36b382571d6d88c742d2784883e025.tar.xz wireguard-openbsd-8086c53d3b36b382571d6d88c742d2784883e025.zip | |
use (off_t)-1 rather than a BAD_LSEEK wrapper
Diffstat (limited to 'usr.bin/less/edit.c')
| -rw-r--r-- | usr.bin/less/edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/less/edit.c b/usr.bin/less/edit.c index 9cdbcd6e4f0..fc01ec9c3d5 100644 --- a/usr.bin/less/edit.c +++ b/usr.bin/less/edit.c @@ -686,7 +686,7 @@ loop: * Append: open the file and seek to the end. */ logfile = open(filename, O_WRONLY | O_APPEND); - if (lseek(logfile, (off_t)0, SEEK_END) == BAD_LSEEK) { + if (lseek(logfile, (off_t)0, SEEK_END) == (off_t)-1) { close(logfile); logfile = -1; } |
