]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ul: fix shadow declaration
authorSami Kerola <kerolasa@iki.fi>
Wed, 25 Jul 2012 19:15:32 +0000 (21:15 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Jul 2012 11:51:20 +0000 (13:51 +0200)
text-utils/ul.c:641:25: warning: declaration of 'col' shadows a global declaration [-Wshadow]
text-utils/ul.c:126:5: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/ul.c

index 80bc7a12e5aae9f23acef5cbefb7c5792e7fdb90..3c7bf504380c19aff522f4810f379842b0fdac74 100644 (file)
@@ -638,11 +638,11 @@ static void setcol(int newcol) {
                needcol(col);
 }
 
-static void needcol(int col) {
-       maxcol = col;
+static void needcol(int acol) {
+       maxcol = acol;
 
        /* If col >= obuflen, expand obuf until obuflen > col. */
-       while (col >= obuflen) {
+       while (acol >= obuflen) {
                /* Paranoid check for obuflen == INT_MAX. */
                if (obuflen == INT_MAX)
                        errx(EXIT_FAILURE, _("Input line too long."));