diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-25 03:32:12 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-25 03:32:12 +0000 |
commit | 8a09840496aac00b47ef80432ea41fc452208dbf (patch) | |
tree | a4d3a15fc80a07fa8750505bdf4087c9f029d218 | |
parent | b1f1e6786a199be973917401fc7eade098b1f8f6 (diff) |
fix lseek
-rw-r--r-- | usr.bin/diff/diffdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/diff/diffdir.c b/usr.bin/diff/diffdir.c index 89b9a0a9cc3..4e0b8da1e75 100644 --- a/usr.bin/diff/diffdir.c +++ b/usr.bin/diff/diffdir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diffdir.c,v 1.5 2003/06/25 03:29:46 deraadt Exp $ */ +/* $OpenBSD: diffdir.c,v 1.6 2003/06/25 03:32:11 deraadt Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. @@ -419,7 +419,7 @@ ascii(int f) int cnt; char *cp; - lseek(f, 0, 0); + lseek(f, (off_t)0, SEEK_SET); cnt = read(f, buf, BUFSIZ); cp = buf; while (--cnt >= 0) |