summaryrefslogtreecommitdiff
path: root/tbl/tc.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-10-23 00:24:25 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-10-23 00:24:25 +0000
commitab1717bb35d85041e0184f79daa1313a1306dc01 (patch)
treefa0739f76b49b902269f8f7c1e1c7c5ea30c0556 /tbl/tc.c
parentaa7798c94fa57f6c00fab4393c9fe91334864371 (diff)
Notes
Diffstat (limited to 'tbl/tc.c')
-rw-r--r--tbl/tc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tbl/tc.c b/tbl/tc.c
index 02a91f733dbc..a67a15dc71bd 100644
--- a/tbl/tc.c
+++ b/tbl/tc.c
@@ -29,7 +29,7 @@ int
choochar(void) {
/* choose funny characters to delimit fields */
int had[128], ilin, icol, k;
- char *s;
+ const char *s;
for(icol=0; icol<128; icol++)
had[icol]=0;
F1 = F2 = 0;
@@ -43,7 +43,7 @@ choochar(void) {
s = table[ilin][icol].col;
if (point((intptr_t)s))
while (*s) {
- if (*s > 0 && *(unsigned char *)s <= 127)
+ if (*s > 0 && *(unsigned const char *)s <= 127)
had[(int)*s++]=1;
else
s++;
@@ -51,7 +51,7 @@ choochar(void) {
s=table[ilin][icol].rcol;
if (point((intptr_t)s))
while (*s) {
- if (*s > 0 && *(unsigned char *)s <= 127)
+ if (*s > 0 && *(unsigned const char *)s <= 127)
had[(int)*s++]=1;
else
s++;