summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/open_disk.c
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2004-03-30 01:39:00 +0000
committerkuriyama <kuriyama@FreeBSD.org>2004-03-30 01:39:00 +0000
commit235cde4aca9550787d8ee19043ccf8472f4843ff (patch)
tree895afcef15d437786d0e970b9e3f4f554dedf20d /lib/libdisk/open_disk.c
parent7957bc47f658a1655bbf5ca4d9c750aa8bfd4c9b (diff)
downloadFreeBSD-src-235cde4aca9550787d8ee19043ccf8472f4843ff.zip
FreeBSD-src-235cde4aca9550787d8ee19043ccf8472f4843ff.tar.gz
Make libdisk WARNS=4 clean.
Glanced by: jhb
Diffstat (limited to 'lib/libdisk/open_disk.c')
-rw-r--r--lib/libdisk/open_disk.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libdisk/open_disk.c b/lib/libdisk/open_disk.c
index b0d4ac7..b3a99f8 100644
--- a/lib/libdisk/open_disk.c
+++ b/lib/libdisk/open_disk.c
@@ -95,8 +95,9 @@ Int_Open_Disk(const char *name, char *conftxt)
d->sector_size = s;
len /= s; /* media size in number of sectors. */
- if (Add_Chunk(d, 0, len, name, whole, 0, 0, "-"))
+ if (Add_Chunk(d, 0, len, name, whole, 0, 0, "-")) {
DPRINT(("Failed to add 'whole' chunk"));
+ }
for (;;) {
a = strsep(&p, " ");
@@ -191,14 +192,16 @@ Int_Open_Disk(const char *name, char *conftxt)
o = d->chunks->size / (hd * sc);
o *= (hd * sc);
o -= alt * hd * sc;
- if (Add_Chunk(d, 0, o, name, freebsd, 0, 0, "-"))
+ if (Add_Chunk(d, 0, o, name, freebsd, 0, 0, "-")) {
DPRINT(("Failed to add 'freebsd' chunk"));
+ }
}
if (platform == p_alpha && !strcmp(t, "BSD") &&
d->chunks->part->part == NULL) {
if (Add_Chunk(d, 0, d->chunks->size, name, freebsd,
- 0, 0, "-"))
+ 0, 0, "-")) {
DPRINT(("Failed to add 'freebsd' chunk"));
+ }
}
if (!strcmp(t, "BSD") && i == RAW_PART)
continue;
@@ -268,8 +271,9 @@ Int_Open_Disk(const char *name, char *conftxt)
o = d->chunks->size / (hd * sc);
o *= (hd * sc);
o -= 2 * hd * sc;
- if (Add_Chunk(d, 0, o, name, freebsd, 0, 0, "-"))
+ if (Add_Chunk(d, 0, o, name, freebsd, 0, 0, "-")) {
DPRINT(("Failed to add 'freebsd' chunk"));
+ }
}
/* PLATFORM POLICY END --------------------------------------- */
OpenPOWER on IntegriCloud