From d4efcf477ec2f565e019b6b8762c409b6c202b8f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 1 Feb 1997 03:25:14 +0000 Subject: (add_line_number): Rename from `number' to avoid shadowing local variables. --- src/pr.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') 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') -- cgit v1.2.3-70-g09d2