From e6cd74c6498a6be8165cf1bd03d3ac48616dc1e3 Mon Sep 17 00:00:00 2001 From: jkh Date: Wed, 13 Aug 1997 12:09:48 +0000 Subject: Cast argument to lseek() properly to off_t. PR: 4246 Obtained from: review of PR and NetBSD sources. --- usr.sbin/quot/quot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/quot') diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c index 5080e30..a5a042a 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 @@ -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); -- cgit v1.1