diff options
author | Jim Meyering <jim@meyering.net> | 1996-01-07 04:06:41 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-01-07 04:06:41 +0000 |
commit | 1d2f218bfff67ad7824b578cd48ed3404ea9202d (patch) | |
tree | 15ec89a0a9bbc737396b3e6d0b194e8f0ad63e2e /src | |
parent | 00b953713e7689062727be6b17b34fc1436936f7 (diff) | |
download | coreutils-1d2f218bfff67ad7824b578cd48ed3404ea9202d.tar.xz |
(print_esc_char): Change type of argument from char to int to avoid
potential promotion problem.
Diffstat (limited to 'src')
-rw-r--r-- | src/printf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/printf.c b/src/printf.c index 4cbbe1345..35eb19319 100644 --- a/src/printf.c +++ b/src/printf.c @@ -71,7 +71,7 @@ static int print_formatted __P ((char *format, int argc, char **argv)); static long xstrtol __P ((char *s)); static unsigned long xstrtoul __P ((char *s)); static void print_direc __P ((char *start, size_t length, int field_width, int precision, char *argument)); -static void print_esc_char __P ((char c)); +static void print_esc_char __P ((int c)); static void print_esc_string __P ((char *str)); static void verify __P ((char *s, char *end)); @@ -314,7 +314,7 @@ print_esc (char *escstart) /* Output a single-character \ escape. */ static void -print_esc_char (char c) +print_esc_char (int c) { switch (c) { |