silence two compiler warnings
PATCH 1/1 silence two compiler warnings
Hi,
Attached patch silences for me two compiler warnings about mismatching print specifiers.
Regards,
Benno
Signature · 1 line
http://www.fastmail.fm - A no graphics, no pop-ups email service
From b854642834e08974e43b3eb05f4dcb852f29bc95 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Thu, 13 Feb 2014 21:36:43 +0100
Subject: [PATCH] libfdisk: avoid two compiler warnings about wrong print formats
Signed-off-by Benno Schulenberg <[email protected]>
--- libfdisk/src/dos.c | 2 +- libfdisk/src/gpt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
libfdisk/src/dos.c +1 -1
@@ -303,7 +303,7 @@ static void dos_init(struct fdisk_context *cxt) fdisk_warnx(cxt, _("The size of this disk is %s (%ju bytes). DOS " "partition table format can not be used on drives for " - "volumes larger than %ju bytes for %lu-byte " + "volumes larger than %lu bytes for %lu-byte " "sectors. Use GUID partition table format (GPT)."), szstr, bytes, UINT_MAX * cxt->sector_size,
libfdisk/src/gpt.c +1 -1
@@ -1850,7 +1850,7 @@ static int gpt_add_partition(if (gpt_create_new_partition (cxt, partnum, user_f, user_l, &typeid, ents) !=0 ) -fdisk_warnx (cxt,_ ("Could not create partition %ju" ), partnum +1 ); +fdisk_warnx (cxt,_ ("Could not create partition %zu" ), partnum +1 );else {struct fdisk_parttype *t;
Signature · 1 line
1.7.0.4
Quoted 3 lines · Benno Schulenberg
libfdisk/src/dos.c | 2 +- libfdisk/src/gpt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com