more cosmetic tweaks
This commit is contained in:
parent
a2213fccd7
commit
ba66837514
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: bbinfo.c,v 1.3 2002/05/20 14:56:10 lukem Exp $ */
|
/* $NetBSD: bbinfo.c,v 1.4 2002/05/20 15:04:25 lukem Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
|
||||||
@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#if defined(__RCSID) && !defined(__lint)
|
#if defined(__RCSID) && !defined(__lint)
|
||||||
__RCSID("$NetBSD: bbinfo.c,v 1.3 2002/05/20 14:56:10 lukem Exp $");
|
__RCSID("$NetBSD: bbinfo.c,v 1.4 2002/05/20 15:04:25 lukem Exp $");
|
||||||
#endif /* !__lint */
|
#endif /* !__lint */
|
||||||
|
|
||||||
#if HAVE_CONFIG_H
|
#if HAVE_CONFIG_H
|
||||||
@ -205,7 +205,7 @@ shared_bbinfo_setboot(ib_params *params, struct bbinfo_params *bbparams,
|
|||||||
blocks = malloc(sizeof(*blocks) * maxblk);
|
blocks = malloc(sizeof(*blocks) * maxblk);
|
||||||
if (blocks == NULL) {
|
if (blocks == NULL) {
|
||||||
warn("Allocating %lu bytes",
|
warn("Allocating %lu bytes",
|
||||||
(unsigned long) sizeof(*blocks) * maxblk);
|
(unsigned long)sizeof(*blocks) * maxblk);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ shared_bbinfo_setboot(ib_params *params, struct bbinfo_params *bbparams,
|
|||||||
HOSTTOTARGET32(blocks[blk_i].block);
|
HOSTTOTARGET32(blocks[blk_i].block);
|
||||||
if (blocks[blk_i].blocksize < blocks[0].blocksize &&
|
if (blocks[blk_i].blocksize < blocks[0].blocksize &&
|
||||||
blk_i + 1 != nblk) {
|
blk_i + 1 != nblk) {
|
||||||
warnx("Secondary bootstrap `%s' blocks do not have " \
|
warnx("Secondary bootstrap `%s' blocks do not have "
|
||||||
"a uniform size", params->stage2);
|
"a uniform size", params->stage2);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
@ -274,8 +274,8 @@ shared_bbinfo_setboot(ib_params *params, struct bbinfo_params *bbparams,
|
|||||||
|
|
||||||
done:
|
done:
|
||||||
if (blocks != NULL)
|
if (blocks != NULL)
|
||||||
free (blocks);
|
free(blocks);
|
||||||
if (bb != NULL)
|
if (bb != NULL)
|
||||||
free (bb);
|
free(bb);
|
||||||
return (retval);
|
return (retval);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user