From: Jim Meyering Date: Mon, 21 Apr 2003 18:02:00 +0000 (+0000) Subject: (print_esc): Tweak spelling of new variable. X-Git-Tag: v5.0.1~662 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4247ffb57cf3a292300b6705e5f53d7422448faf;p=thirdparty%2Fcoreutils.git (print_esc): Tweak spelling of new variable. --- diff --git a/src/printf.c b/src/printf.c index cc4bfd9f2c..5be95cfb10 100644 --- a/src/printf.c +++ b/src/printf.c @@ -237,11 +237,11 @@ print_esc_char (int c) /* Print a \ escape sequence starting at ESCSTART. Return the number of characters in the escape sequence besides the backslash. - If OCTAL0 is nonzero, octal escapes are of the form \0ooo, where o + If OCTAL_0 is nonzero, octal escapes are of the form \0ooo, where o is an octal digit; otherwise they are of the form \ooo. */ static int -print_esc (const char *escstart, bool octal0) +print_esc (const char *escstart, bool octal_0) { register const char *p = escstart + 1; int esc_value = 0; /* Value of \nnn escape. */ @@ -260,10 +260,10 @@ print_esc (const char *escstart, bool octal0) } else if (isodigit (*p)) { - /* Parse \0ooo (if octal0 && *p == '0') or \ooo (otherwise). - Allow \ooo if octal0 && *p != '0'; this is an undocumented + /* Parse \0ooo (if octal_0 && *p == '0') or \ooo (otherwise). + Allow \ooo if octal_0 && *p != '0'; this is an undocumented extension to POSIX that is compatible with Bash 2.05b. */ - for (esc_length = 0, p += octal0 && *p == '0'; + for (esc_length = 0, p += octal_0 && *p == '0'; esc_length < 3 && isodigit (*p); ++esc_length, ++p) esc_value = esc_value * 8 + octtobin (*p);