diff options
Diffstat (limited to 'src/printf.c')
| -rw-r--r-- | src/printf.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/printf.c b/src/printf.c index 95bd26f2e..a23b5a8b1 100644 --- a/src/printf.c +++ b/src/printf.c @@ -142,7 +142,7 @@ ARGUMENTs converted to proper type first. Variable widths are handled.\n\ } static void -verify_numeric (const char *s, const char *end) +verify_numeric (char const *s, char const *end) { if (errno) { @@ -237,9 +237,9 @@ print_esc_char (char c) is an octal digit; otherwise they are of the form \ooo. */ static int -print_esc (const char *escstart, bool octal_0) +print_esc (char const *escstart, bool octal_0) { - const char *p = escstart + 1; + char const *p = escstart + 1; int esc_value = 0; /* Value of \nnn escape. */ int esc_length; /* Length of \nnn escape. */ @@ -310,7 +310,7 @@ print_esc (const char *escstart, bool octal_0) /* Print string STR, evaluating \ escapes. */ static void -print_esc_string (const char *str) +print_esc_string (char const *str) { for (; *str; str++) if (*str == '\\') @@ -328,7 +328,7 @@ print_esc_string (const char *str) be formatted. */ static void -print_direc (const char *start, size_t length, char conversion, +print_direc (char const *start, size_t length, char conversion, bool have_field_width, int field_width, bool have_precision, int precision, char const *argument) @@ -475,11 +475,11 @@ print_direc (const char *start, size_t length, char conversion, Return the number of elements of ARGV used. */ static int -print_formatted (const char *format, int argc, char **argv) +print_formatted (char const *format, int argc, char **argv) { int save_argc = argc; /* Preserve original value. */ - const char *f; /* Pointer into 'format'. */ - const char *direc_start; /* Start of % directive. */ + char const *f; /* Pointer into 'format'. */ + char const *direc_start; /* Start of % directive. */ size_t direc_length; /* Length of % directive. */ bool have_field_width; /* True if FIELD_WIDTH is valid. */ int field_width = 0; /* Arg to first '*'. */ |
