summaryrefslogtreecommitdiffstats
path: root/usr.sbin/quot
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-08-13 12:09:48 +0000
committerjkh <jkh@FreeBSD.org>1997-08-13 12:09:48 +0000
commite6cd74c6498a6be8165cf1bd03d3ac48616dc1e3 (patch)
treef4ac6a218591c94d2005de014c7aa0f16184bc0d /usr.sbin/quot
parent9f9f6e5ce4f757ae4ff277d4e54c1227a94ebe78 (diff)
downloadFreeBSD-src-e6cd74c6498a6be8165cf1bd03d3ac48616dc1e3.zip
FreeBSD-src-e6cd74c6498a6be8165cf1bd03d3ac48616dc1e3.tar.gz
Cast argument to lseek() properly to off_t.
PR: 4246 Obtained from: review of PR and NetBSD sources.
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 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 <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);
OpenPOWER on IntegriCloud