summaryrefslogtreecommitdiff
path: root/usr.bin
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.bin
parentb4f316147600b29b68c7b4a1440753be2e4d4d85 (diff)
use SEEK_* for lseek()
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mail/fio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mail/fio.c b/usr.bin/mail/fio.c
index bb03ebc6e1f..6aaed2d0bb5 100644
--- a/usr.bin/mail/fio.c
+++ b/usr.bin/mail/fio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fio.c,v 1.25 2004/05/10 15:25:51 deraadt Exp $ */
+/* $OpenBSD: fio.c,v 1.26 2006/04/02 00:51:37 deraadt Exp $ */
/* $NetBSD: fio.c,v 1.8 1997/07/07 22:57:55 phil Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static const char sccsid[] = "@(#)fio.c 8.2 (Berkeley) 4/20/95";
#else
-static const char rcsid[] = "$OpenBSD: fio.c,v 1.25 2004/05/10 15:25:51 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: fio.c,v 1.26 2006/04/02 00:51:37 deraadt Exp $";
#endif
#endif /* not lint */
@@ -292,7 +292,7 @@ makemessage(FILE *f, int omsgCount)
message = nmessage;
size -= (omsgCount + 1) * sizeof(struct message);
fflush(f);
- (void)lseek(fileno(f), (off_t)sizeof(*message), 0);
+ (void)lseek(fileno(f), (off_t)sizeof(*message), SEEK_SET);
if (myread(fileno(f), (void *) &message[omsgCount], size) != size)
errx(1, "Message temporary file corrupted");
message[msgCount].m_size = 0;