fix a macro's usage

This commit is contained in:
cgd 1994-06-13 20:56:47 +00:00
parent ae32655a2d
commit 98683fd3c2

View File

@ -30,7 +30,7 @@
*/
#ifndef lint
static char rcsid[] = "$Id: quot.c,v 1.5 1994/06/13 20:50:48 cgd Exp $";
static char rcsid[] = "$Id: quot.c,v 1.6 1994/06/13 20:56:47 cgd 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,itod(super,last) << super->fs_fshift,0) < 0
if (lseek(fd,ino_to_fsba(super,last) << super->fs_fshift,0) < 0
|| read(fd,ip,INOSZ(super)) != INOSZ(super)) {
perror("read inodes");
exit(1);