Whamcloud - gitweb
blkid: fix gcc -Wall nits
authorTheodore Ts'o <tytso@mit.edu>
Sat, 11 Jan 2014 02:40:28 +0000 (21:40 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 11 Jan 2014 02:40:28 +0000 (21:40 -0500)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/blkid.c

index 8d1f5a9..2e48caa 100644 (file)
@@ -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;
 }