aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/quot
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1997-08-13 12:09:48 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1997-08-13 12:09:48 +0000
commitc9d12677b4e8ac98b85e5a6194bd5c1a1fa2ae07 (patch)
treef810c1713a82d11fc2ac7067145e563ee12374a8 /usr.sbin/quot
parent42a23098750790f0a9a16c2383049baf918b99f6 (diff)
downloadsrc-c9d12677b4e8ac98b85e5a6194bd5c1a1fa2ae07.tar.gz
src-c9d12677b4e8ac98b85e5a6194bd5c1a1fa2ae07.zip
Cast argument to lseek() properly to off_t.
PR: 4246 Obtained from: review of PR and NetBSD sources.
Notes
Notes: svn path=/head/; revision=28160
Diffstat (limited to 'usr.sbin/quot')
-rw-r--r--usr.sbin/quot/quot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c
index 5080e302a61d..a5a042a273a2 100644
--- a/usr.sbin/quot/quot.c
+++ b/usr.sbin/quot/quot.c
@@ -30,7 +30,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id$";
+static char rcsid[] = "$Id: quot.c,v 1.5 1997/02/22 16:12:39 peter Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -94,7 +94,7 @@ static struct dinode *get_inode(fd,super,ino)
exit(1);
}
last = (ino / INOCNT(super)) * INOCNT(super);
- if (lseek(fd,ino_to_fsba(super,last) << super->fs_fshift,0) < 0
+ if (lseek(fd, (off_t)ino_to_fsba(super, last) << super->fs_fshift, 0) < (off_t)0
|| read(fd,ip,INOSZ(super)) != INOSZ(super)) {
perror("read inodes");
exit(1);