summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-23 09:34:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-23 09:34:12 +0000
commitab6942b33db7ddea98db9d03f6e9128644f36634 (patch)
tree9f55ffbe8b4de7763666f941143b92fb22f43567 /usr.sbin
parentf8e53854ee579eca92113e6bdebbcc888390c032 (diff)
off_t botch
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/fdformat/fdformat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/fdformat/fdformat.c b/usr.sbin/fdformat/fdformat.c
index fe5c1e4d02e..e1b0d01c91f 100644
--- a/usr.sbin/fdformat/fdformat.c
+++ b/usr.sbin/fdformat/fdformat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdformat.c,v 1.2 1996/06/28 00:53:38 downsj Exp $ */
+/* $OpenBSD: fdformat.c,v 1.3 1997/06/23 09:34:11 deraadt Exp $ */
/*
* Copyright (C) 1992-1994 by Joerg Wunsch, Dresden
@@ -118,7 +118,7 @@ verify_track(fd, track, tracksize)
fprintf (stderr, "\nfdformat: out of memory\n");
exit (2);
}
- if (lseek (fd, (long) track*tracksize, 0) < 0)
+ if (lseek (fd, (off_t) track*tracksize, 0) < 0)
rv = -1;
/* try twice reading it, without using the normal retrier */
else if (read (fd, buf, tracksize) != tracksize