Add some braces to make egcs happy (ambiguous else warning). Also,

deal with bogus uninitialized warning (__noreturn__ related)
This commit is contained in:
thorpej 1998-08-18 06:47:53 +00:00
parent f19e987daa
commit 6fc90a1a4d
1 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ffs_alloc.c,v 1.24 1998/08/09 20:15:39 perry Exp $ */
/* $NetBSD: ffs_alloc.c,v 1.25 1998/08/18 06:47:53 thorpej Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -181,7 +181,12 @@ ffs_realloccg(ip, lbprev, bpref, osize, nsize, cred, bpp)
struct buf *bp;
int cg, request, error;
ufs_daddr_t bprev, bno;
#ifdef __GNUC__
/* XXX bogus -Wuninitialized */
request = 0;
#endif
*bpp = 0;
fs = ip->i_fs;
#ifdef DIAGNOSTIC
@ -487,11 +492,12 @@ ffs_reallocblks(v)
VOP_UPDATE(vp, &ts, &ts, 1);
}
}
if (ssize < len)
if (ssize < len) {
if (doasyncfree)
bdwrite(ebp);
else
bwrite(ebp);
}
/*
* Last, free the old blocks and assign the new blocks to the buffers.
*/