From 653681fb30fea37af2d8c9b9f9f7dd06a2f9542b Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Tue, 30 Mar 2004 01:39:00 +0000 Subject: Make libdisk WARNS=4 clean. Glanced by: jhb --- lib/libdisk/open_disk.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lib/libdisk/open_disk.c') diff --git a/lib/libdisk/open_disk.c b/lib/libdisk/open_disk.c index b0d4ac73aef8..b3a99f865d76 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 --------------------------------------- */ -- cgit v1.3