]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsblk: fix strtoul() usage [coverity scan]
authorKarel Zak <kzak@redhat.com>
Fri, 11 Mar 2011 12:36:00 +0000 (13:36 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 11 Mar 2011 12:36:00 +0000 (13:36 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk.c

index e507b289e80c8eb2d2f1a33c45752cd5734e7a04..38326d08ab698716bc160d494ce4a5ed8cfce772 100644 (file)
@@ -900,7 +900,7 @@ static void parse_excludes(const char *str)
 
        while (str && *str) {
                char *end = NULL;
-               unsigned int n;
+               unsigned long n;
 
                errno = 0;
                n = strtoul(str, &end, 10);