Cast argument to lseek() properly to off_t.

PR:		4246
Obtained from:	review of PR and NetBSD sources.
This commit is contained in:
Jordan K. Hubbard 1997-08-13 12:09:48 +00:00
parent 42a2309875
commit c9d12677b4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28160

View File

@ -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);