summaryrefslogtreecommitdiff
path: root/sbin/modload/a.out.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-02 00:48:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-02 00:48:56 +0000
commitb4f316147600b29b68c7b4a1440753be2e4d4d85 (patch)
tree7c623297181a97d02ea7c873b1e8df34f28d55da /sbin/modload/a.out.c
parentb790821253b18e5408519e221871f17f7debaee8 (diff)
use SEEK_* for lseek()
Diffstat (limited to 'sbin/modload/a.out.c')
-rw-r--r--sbin/modload/a.out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/modload/a.out.c b/sbin/modload/a.out.c
index b969aea92c0..7fe3325c0c2 100644
--- a/sbin/modload/a.out.c
+++ b/sbin/modload/a.out.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a.out.c,v 1.4 2002/12/11 18:28:22 deraadt Exp $ */
+/* $OpenBSD: a.out.c,v 1.5 2006/04/02 00:48:35 deraadt Exp $ */
/* $NetBSD: a.out.c,v 1.1 1999/06/13 12:54:40 mrg Exp $ */
/*
@@ -149,7 +149,7 @@ a_out_mod_load(int fd)
/*
* Seek to the text offset to start loading...
*/
- if (lseek(fd, N_TXTOFF(sinfo_buf), 0) == -1)
+ if (lseek(fd, N_TXTOFF(sinfo_buf), SEEK_SET) == -1)
err(12, "lseek");
/*