From: Theodore Ts'o Date: Sat, 11 Jan 2014 02:40:28 +0000 (-0500) Subject: blkid: fix gcc -Wall nits X-Git-Tag: v1.42.10~112 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6596c997f30e653c8b12a328c50ff420d8d0915e;p=thirdparty%2Fe2fsprogs.git blkid: fix gcc -Wall nits Signed-off-by: "Theodore Ts'o" --- diff --git a/misc/blkid.c b/misc/blkid.c index 8d1f5a97b..2e48caaee 100644 --- a/misc/blkid.c +++ b/misc/blkid.c @@ -38,7 +38,7 @@ extern int optind; #include "ext2fs/ext2fs.h" #include "blkid/blkid.h" -const char *progname = "blkid"; +static const char *progname = "blkid"; static void print_version(FILE *out) { @@ -127,9 +127,9 @@ static int pretty_print_word(const char *str, int max_len, len = 0; } else if (len > max_len) ret = len - max_len; - do + do { fputc(' ', stdout); - while (len++ < max_len); + } while (len++ < max_len); return ret; }