mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
compiler warnings.
This commit is contained in:
parent
3330e5bf7b
commit
9614b46f79
1 changed files with 3 additions and 2 deletions
|
@ -98,11 +98,12 @@ ffssync(Fsys *fsys)
|
|||
/*
|
||||
* Read super block.
|
||||
*/
|
||||
b = nil;
|
||||
for(i=0; i<nelem(off); i++){
|
||||
if((b = diskread(disk, SBSIZE, off[i])) == nil)
|
||||
goto error;
|
||||
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)
|
||||
goto okay;
|
||||
blockput(b);
|
||||
|
@ -293,7 +294,7 @@ ffsdatablock(Ffs *fs, u64int bno, int size)
|
|||
fsize = fs->fragsize;
|
||||
|
||||
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;
|
||||
}
|
||||
diskaddr = (u64int)bno*fs->fragsize;
|
||||
|
|
Loading…
Reference in a new issue