From: Sami Kerola Date: Wed, 25 Jul 2012 19:15:25 +0000 (+0200) Subject: blkid: fix shadow declaration X-Git-Tag: v2.22-rc1~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f5ee44b17a38293c33f39884ceb43963c29ce7ad;p=thirdparty%2Futil-linux.git blkid: fix shadow declaration misc-utils/blkid.c:402:15: warning: declaration of 'usage' shadows a global declaration [-Wshadow] misc-utils/blkid.c:63:13: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola --- diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index e47a79381a..fa38d82f6b 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -399,17 +399,17 @@ static int print_udev_ambivalent(blkid_probe pr) int count = 0, rc = -1; while (!blkid_do_probe(pr)) { - const char *usage = NULL, *type = NULL, *version = NULL; + const char *usage_txt = NULL, *type = NULL, *version = NULL; char enc[256]; - blkid_probe_lookup_value(pr, "USAGE", &usage, NULL); + blkid_probe_lookup_value(pr, "USAGE", &usage_txt, NULL); blkid_probe_lookup_value(pr, "TYPE", &type, NULL); blkid_probe_lookup_value(pr, "VERSION", &version, NULL); - if (!usage || !type) + if (!usage_txt || !type) continue; - blkid_encode_string(usage, enc, sizeof(enc)); + blkid_encode_string(usage_txt, enc, sizeof(enc)); if (append_str(&val, &valsz, enc, ":")) goto done;