diff options
author | Jim Meyering <jim@meyering.net> | 1997-02-01 03:25:14 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-02-01 03:25:14 +0000 |
commit | d4efcf477ec2f565e019b6b8762c409b6c202b8f (patch) | |
tree | 598a28ff4b0b28d6021291e70877697d104871d0 /src | |
parent | 0e291b59ed1dfe2bd0db3c92c857cb82de1e8954 (diff) | |
download | coreutils-d4efcf477ec2f565e019b6b8762c409b6c202b8f.tar.xz |
(add_line_number): Rename from `number' to avoid shadowing local variables.
Diffstat (limited to 'src')
-rw-r--r-- | src/pr.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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') |