summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-04-21 18:02:00 +0000
committerJim Meyering <jim@meyering.net>2003-04-21 18:02:00 +0000
commit4247ffb57cf3a292300b6705e5f53d7422448faf (patch)
treeff46bd1d65ea42d8bf10d9673583eaecdba0abd4
parente52152349f3349f6d629d2f417942f0cd2993356 (diff)
downloadcoreutils-4247ffb57cf3a292300b6705e5f53d7422448faf.tar.xz
(print_esc): Tweak spelling of new variable.
-rw-r--r--src/printf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/printf.c b/src/printf.c
index cc4bfd9f2..5be95cfb1 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);