compiler warnings.

This commit is contained in:
rsc 2005-10-29 17:41:45 +00:00
parent 3330e5bf7b
commit 9614b46f79

View file

@ -98,11 +98,12 @@ ffssync(Fsys *fsys)
/* /*
* Read super block. * Read super block.
*/ */
b = nil;
for(i=0; i<nelem(off); i++){ for(i=0; i<nelem(off); i++){
if((b = diskread(disk, SBSIZE, off[i])) == nil) if((b = diskread(disk, SBSIZE, off[i])) == nil)
goto error; goto error;
fsblk = (Fsblk*)b->data; fsblk = (Fsblk*)b->data;
fprint(2, "offset of magic: %d\n", offsetof(Fsblk, magic)); fprint(2, "offset of magic: %ld\n", offsetof(Fsblk, magic));
if((fs->ufs = checkfsblk(fsblk)) > 0) if((fs->ufs = checkfsblk(fsblk)) > 0)
goto okay; goto okay;
blockput(b); blockput(b);
@ -293,7 +294,7 @@ ffsdatablock(Ffs *fs, u64int bno, int size)
fsize = fs->fragsize; fsize = fs->fragsize;
if(bno >= fs->nfrag){ if(bno >= fs->nfrag){
fprint(2, "ffs: request for block %#lux; nfrag %#x\n", (ulong)bno, fs->nfrag); fprint(2, "ffs: request for block %#lux; nfrag %#llux\n", (ulong)bno, fs->nfrag);
return nil; return nil;
} }
diskaddr = (u64int)bno*fs->fragsize; diskaddr = (u64int)bno*fs->fragsize;