diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-02 00:51:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-02 00:51:38 +0000 |
commit | 979a4130198cf695fa53864ef389566d313a5a9f (patch) | |
tree | 4d4b0f2c212e23704f4f0144397cca1f4eba18ef /usr.sbin/fdformat | |
parent | b4f316147600b29b68c7b4a1440753be2e4d4d85 (diff) |
use SEEK_* for lseek()
Diffstat (limited to 'usr.sbin/fdformat')
-rw-r--r-- | usr.sbin/fdformat/fdformat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/fdformat/fdformat.c b/usr.sbin/fdformat/fdformat.c index c1ba5328c85..748b21d4a39 100644 --- a/usr.sbin/fdformat/fdformat.c +++ b/usr.sbin/fdformat/fdformat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fdformat.c,v 1.13 2006/03/12 02:45:45 deraadt Exp $ */ +/* $OpenBSD: fdformat.c,v 1.14 2006/04/02 00:50:42 deraadt Exp $ */ /* * Copyright (C) 1992-1994 by Joerg Wunsch, Dresden @@ -118,7 +118,7 @@ verify_track(int fd, int track, int tracksize) fprintf (stderr, "\nfdformat: out of memory\n"); exit (2); } - if (lseek (fd, (off_t) track*tracksize, 0) < 0) + if (lseek (fd, (off_t) track*tracksize, SEEK_SET) < 0) rv = -1; /* try twice reading it, without using the normal retrier */ else if (read (fd, buf, tracksize) != tracksize |