]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: don't swap unsigned char
authorKarel Zak <kzak@redhat.com>
Wed, 1 Feb 2012 10:53:45 +0000 (11:53 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Feb 2012 10:53:45 +0000 (11:53 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/fdisksgilabel.c

index dd3efd0519dc6ef589d17008db60b64e2e4730cc..ce919f05e53073f29ecd526cd47f91eeccfb7754 100644 (file)
@@ -193,8 +193,7 @@ sgi_list_table(int xtra) {
                         "Units = %s of %d * %d bytes\n\n"),
                       disk_device, heads, sectors, cylinders,
                       SSWAP16(sgiparam.pcylcount),
-                      SSWAP16(sgiparam.sparecyl),
-                      SSWAP16(sgiparam.ilfact),
+                      (int) sgiparam.sparecyl, SSWAP16(sgiparam.ilfact),
                       (char *)sgilabel,
                       str_units(PLURAL), units_per_sector,
                        sector_size);