pat_map = (unsigned char **) calloc (256, sizeof(unsigned char *));
for (cp = (char *) fdelim + 1; cp < (char *) delimend; cp++ )
- pat_map[(int)*cp] = (unsigned char *) cp;
+ pat_map[(unsigned char)*cp] = (unsigned char *) cp;
if (msg_style == MS_MMDF) {
/* flush extra msg hdrs */
if (*p2 == CCHR) {
c = p2[1];
do {
- if (*p1 == c || cc[(int)*p1] == c)
+ if (*p1 == c || cc[(unsigned char)*p1] == c)
if (advance (p1, p2))
return 1;
} while (*p1++);
for (;;)
switch (*ep++) {
case CCHR:
- if (*ep++ == *lp++ || ep[-1] == cc[(int)lp[-1]])
+ if (*ep++ == *lp++ || ep[-1] == cc[(unsigned char)lp[-1]])
continue;
return 0;
case CCHR | STAR:
curlp = lp;
- while (*lp++ == *ep || cc[(int)lp[-1]] == *ep)
+ while (*lp++ == *ep || cc[(unsigned char)lp[-1]] == *ep)
continue;
ep++;
goto star;
if (fp) {
fseek (fp, 0L, SEEK_END);
fprintf (fp, "%d: <--- %s %d: \"%*.*s\"\n", (int) getpid(),
- types[(int)rc->rc_type], rc->rc_len,
+ types[(unsigned char)rc->rc_type], rc->rc_len,
rc->rc_len, rc->rc_len, rc->rc_data);
fflush (fp);
}
if (fp) {
fseek (fp, 0L, SEEK_END);
fprintf (fp, "%d: ---> %s %d: \"%*.*s\"\n", (int) getpid(),
- types[(int)rc->rc_type], rc->rc_len,
+ types[(unsigned char)rc->rc_type], rc->rc_len,
rc->rc_len, rc->rc_len, data);
fflush (fp);
}