aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/tbl
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-14 18:46:35 +0000
committerrsc <devnull@localhost>2005-01-14 18:46:35 +0000
commitcb98c6f8541314d566fe511dbd93ad37986d70e7 (patch)
treedb2f46115cb156cca43966eeccd93b615eab8c18 /src/cmd/tbl
parent7ea6c4fcbedc5a8039ed91a4a5d77d7366109cd8 (diff)
downloadplan9port-cb98c6f8541314d566fe511dbd93ad37986d70e7.tar.gz
plan9port-cb98c6f8541314d566fe511dbd93ad37986d70e7.tar.bz2
plan9port-cb98c6f8541314d566fe511dbd93ad37986d70e7.zip
stupid sun
Diffstat (limited to 'src/cmd/tbl')
-rw-r--r--src/cmd/tbl/tc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmd/tbl/tc.c b/src/cmd/tbl/tc.c
index 841680b6..6323c267 100644
--- a/src/cmd/tbl/tc.c
+++ b/src/cmd/tbl/tc.c
@@ -6,7 +6,7 @@ choochar(void)
{
/* choose funny characters to delimit fields */
int had[128], ilin, icol, k;
- unsigned char *s;
+ char *s;
for (icol = 0; icol < 128; icol++)
had[icol] = 0;
@@ -23,19 +23,19 @@ choochar(void)
s = table[ilin][icol].col;
if (point(s))
while (*s)
- had[*s++] = 1;
+ had[(unsigned char)*s++] = 1;
s = table[ilin][icol].rcol;
if (point(s))
while (*s)
- had[*s++] = 1;
+ had[(unsigned char)*s++] = 1;
}
}
/* choose first funny character */
for (
s = "\002\003\005\006\007!%&#/?,:;<=>@`^~_{}+-*ABCDEFGHIJKMNOPQRSTUVWXYZabcdefgjkoqrstwxyz";
*s; s++) {
- if (had[*s] == 0) {
- F1 = *s;
+ if (had[(unsigned char)*s] == 0) {
+ F1 = (unsigned char)*s;
had[F1] = 1;
break;
}
@@ -44,8 +44,8 @@ choochar(void)
for (
s = "\002\003\005\006\007:_~^`@;,<=>#%&!/?{}+-*ABCDEFGHIJKMNOPQRSTUVWXZabcdefgjkoqrstuwxyz";
*s; s++) {
- if (had[*s] == 0) {
- F2 = *s;
+ if (had[(unsigned char)*s] == 0) {
+ F2 = (unsigned char)*s;
break;
}
}