summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-02-01 03:25:14 +0000
committerJim Meyering <jim@meyering.net>1997-02-01 03:25:14 +0000
commitd4efcf477ec2f565e019b6b8762c409b6c202b8f (patch)
tree598a28ff4b0b28d6021291e70877697d104871d0 /src
parent0e291b59ed1dfe2bd0db3c92c857cb82de1e8954 (diff)
downloadcoreutils-d4efcf477ec2f565e019b6b8762c409b6c202b8f.tar.xz
(add_line_number): Rename from `number' to avoid shadowing local variables.
Diffstat (limited to 'src')
-rw-r--r--src/pr.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/pr.c b/src/pr.c
index 9451d5e24..55acc508b 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -282,8 +282,9 @@ static int open_file __P ((char *name, COLUMN *p));
static int skip_to_page __P ((int page));
static void print_header __P ((void));
static void pad_across_to __P ((int position));
-static void number __P ((COLUMN *p));
-static void getoptarg __P ((char *arg, char switch_char, char *character, int *number));
+static void add_line_number __P ((COLUMN *p));
+static void getoptarg __P ((char *arg, char switch_char, char *character,
+ int *number));
static void usage __P ((int status));
static void print_files __P ((int number_of_files, char **av));
static void init_parameters __P ((int number_of_files));
@@ -1489,7 +1490,7 @@ align_column (COLUMN *p)
print_sep_string ();
if (p->numbered)
- number (p);
+ add_line_number (p);
}
/* Print one page.
@@ -1757,7 +1758,7 @@ store_char (int c)
}
static void
-number (COLUMN *p)
+add_line_number (COLUMN *p)
{
int i;
char *s;
@@ -2174,7 +2175,7 @@ read_line (COLUMN *p)
}
if (p->numbered)
- number (p);
+ add_line_number (p);
empty_line = FALSE;
if (c == '\n')