diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-10-23 00:24:25 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-10-23 00:24:25 +0000 |
commit | ab1717bb35d85041e0184f79daa1313a1306dc01 (patch) | |
tree | fa0739f76b49b902269f8f7c1e1c7c5ea30c0556 /tbl/tc.c | |
parent | aa7798c94fa57f6c00fab4393c9fe91334864371 (diff) |
Notes
Diffstat (limited to 'tbl/tc.c')
-rw-r--r-- | tbl/tc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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++; |