summaryrefslogtreecommitdiff
path: root/src/tr.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-05-07 03:09:55 +0000
committerJim Meyering <jim@meyering.net>1993-05-07 03:09:55 +0000
commit9a96f7c461a5c7c53639d3f84bd446a6959aa1a9 (patch)
treedf4468282d2a175bdfabcb9001f30b18f9686329 /src/tr.c
parentf7999d7584ad787f4e7432b7ad76cc3486bc7b0b (diff)
downloadcoreutils-9a96f7c461a5c7c53639d3f84bd446a6959aa1a9.tar.xz
merge with 1.5
Diffstat (limited to 'src/tr.c')
-rw-r--r--src/tr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tr.c b/src/tr.c
index 9010f4500..f2a3fac76 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -371,7 +371,7 @@ is_char_class_member (char_class, c)
case CC_XDIGIT:
return ISXDIGIT (c);
break;
- case CC_NO_CLASS:
+ default:
abort ();
break;
}
@@ -1759,15 +1759,15 @@ deleting and squeezing repeats");
{
if (!in_s1[i])
{
- int c = get_next (s2, NULL);
- assert (c != -1 || truncate_set1);
- if (c == -1)
+ int ch = get_next (s2, NULL);
+ assert (ch != -1 || truncate_set1);
+ if (ch == -1)
{
/* This will happen when tr is invoked like e.g.
tr -cs A-Za-z0-9 '\012'. */
break;
}
- xlate[i] = c;
+ xlate[i] = ch;
}
}
assert (get_next (s2, NULL) == -1 || truncate_set1);