summaryrefslogtreecommitdiffstats
path: root/text-utils/ul.c
diff options
context:
space:
mode:
authorSami Kerola2012-07-25 21:15:32 +0200
committerKarel Zak2012-07-26 13:51:20 +0200
commit728510441027c6a5d6dff866beedf1e260852d67 (patch)
treeec22ed4f661e1ee6e5bfd36feea3dc48c8a0aa00 /text-utils/ul.c
parentmore: fix shadow declaration (diff)
downloadkernel-qcow2-util-linux-728510441027c6a5d6dff866beedf1e260852d67.tar.gz
kernel-qcow2-util-linux-728510441027c6a5d6dff866beedf1e260852d67.tar.xz
kernel-qcow2-util-linux-728510441027c6a5d6dff866beedf1e260852d67.zip
ul: fix shadow declaration
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>
Diffstat (limited to 'text-utils/ul.c')
-rw-r--r--text-utils/ul.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/text-utils/ul.c b/text-utils/ul.c
index 80bc7a12e..3c7bf5043 100644
--- a/text-utils/ul.c
+++ b/text-utils/ul.c
@@ -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."));