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 /libfdisk/src/bsd.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 'libfdisk/src/bsd.c')
-rw-r--r-- | libfdisk/src/bsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdisk/src/bsd.c b/libfdisk/src/bsd.c index 91826bce1..ca55a13a9 100644 --- a/libfdisk/src/bsd.c +++ b/libfdisk/src/bsd.c @@ -838,7 +838,7 @@ int fdisk_bsd_link_partition(struct fdisk_context *cxt) fdisk_sinfo(cxt, FDISK_INFO_SUCCESS, _("BSD partition '%c' linked to DOS partition %d."), - 'a' + i, k + 1); + 'a' + (int) i, (int) k + 1); return 0; } |