summaryrefslogtreecommitdiff
path: root/usr.sbin/rarpd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-02 00:51:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-02 00:51:38 +0000
commit979a4130198cf695fa53864ef389566d313a5a9f (patch)
tree4d4b0f2c212e23704f4f0144397cca1f4eba18ef /usr.sbin/rarpd
parentb4f316147600b29b68c7b4a1440753be2e4d4d85 (diff)
use SEEK_* for lseek()
Diffstat (limited to 'usr.sbin/rarpd')
-rw-r--r--usr.sbin/rarpd/rarpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c
index 9b9015be016..39376638d21 100644
--- a/usr.sbin/rarpd/rarpd.c
+++ b/usr.sbin/rarpd/rarpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rarpd.c,v 1.46 2006/01/23 17:29:22 millert Exp $ */
+/* $OpenBSD: rarpd.c,v 1.47 2006/04/02 00:50:42 deraadt Exp $ */
/* $NetBSD: rarpd.c,v 1.25 1998/04/23 02:48:33 mrg Exp $ */
/*
@@ -28,7 +28,7 @@ char copyright[] =
#endif /* not lint */
#ifndef lint
-static char rcsid[] = "$OpenBSD: rarpd.c,v 1.46 2006/01/23 17:29:22 millert Exp $";
+static char rcsid[] = "$OpenBSD: rarpd.c,v 1.47 2006/04/02 00:50:42 deraadt Exp $";
#endif
@@ -451,7 +451,7 @@ rarp_loop(void)
if (cc < 0) {
if (errno == EINVAL &&
(lseek(fd, (off_t)0, SEEK_CUR) + bufsize) < 0) {
- (void) lseek(fd, (off_t)0, 0);
+ (void) lseek(fd, (off_t)0, SEEK_SET);
goto again;
}
error(FATAL, "read: %s", strerror(errno));