X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/a68924a6e07d69bc4b8d6106b3af0ac5a7490905..7793444d37910f28cea03bf5ef93fdea97fdb83d:/usr/src/cmd/clri.c diff --git a/usr/src/cmd/clri.c b/usr/src/cmd/clri.c index d4da6dea09..8c2fa625fb 100644 --- a/usr/src/cmd/clri.c +++ b/usr/src/cmd/clri.c @@ -2,10 +2,10 @@ * clri filsys inumber ... */ -#include +#include #include + #define ISIZE (sizeof(struct dinode)) -#define BSIZE 512 #define NI (BSIZE/ISIZE) struct ino { @@ -43,7 +43,7 @@ char *argv[]; status = 1; continue; } - off = ((n-1)/NI + 2) * (long)512; + off = itod(n) * BSIZE; lseek(f, off, 0); if(read(f, (char *)buf, BSIZE) != BSIZE) { printf("%s: read error\n", argv[i]); @@ -55,10 +55,10 @@ char *argv[]; for(i=2; i