diff options
author | Karel Zak | 2013-10-15 12:46:35 +0200 |
---|---|---|
committer | Karel Zak | 2013-10-15 12:46:35 +0200 |
commit | e39966c6a026003f88989e5469fa9b3682fcfbc6 (patch) | |
tree | 8519b6058a4b16cb890bdf1d673282ca09235986 /fdisks/fdisk-menu.c | |
parent | libfdisk: (dos) all disklabel locate function (diff) | |
download | kernel-qcow2-util-linux-e39966c6a026003f88989e5469fa9b3682fcfbc6.tar.gz kernel-qcow2-util-linux-e39966c6a026003f88989e5469fa9b3682fcfbc6.tar.xz kernel-qcow2-util-linux-e39966c6a026003f88989e5469fa9b3682fcfbc6.zip |
fdisk: fix printf stuff
Unfortunately, fdisk_warn/info/.. function was not marked by
printf __attribute__.
We don't want to break gettext stuff now, so all compiler warnings
have been fixed by casts. This is temporary solution, after release it
will be necessary to fix all the strings.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk-menu.c')
-rw-r--r-- | fdisks/fdisk-menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fdisks/fdisk-menu.c b/fdisks/fdisk-menu.c index f9cce60fc..e4c64691e 100644 --- a/fdisks/fdisk-menu.c +++ b/fdisks/fdisk-menu.c @@ -456,9 +456,9 @@ static int generic_menu_cb(struct fdisk_context **cxt0, if (!rc) rc = fdisk_delete_partition(cxt, n); if (rc) - fdisk_warnx(cxt, _("Could not delete partition %d"), n + 1); + fdisk_warnx(cxt, _("Could not delete partition %d"), (int) n + 1); else - fdisk_info(cxt, _("Partition %d has been deleted."), n + 1); + fdisk_info(cxt, _("Partition %d has been deleted."), (int) n + 1); break; case 'l': list_partition_types(cxt); |