From: Dan Harkless Date: Tue, 25 Jan 2000 05:50:12 +0000 (+0000) Subject: Typecast to get rid of warnings that array index into types[] is a char. X-Git-Tag: nmh-1_0~120 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=5fc7e12e8c45a78bddb8e68b6c69653f8d30d11c;p=mmh Typecast to get rid of warnings that array index into types[] is a char. --- diff --git a/uip/vmhsbr.c b/uip/vmhsbr.c index c874395..4a2b951 100644 --- a/uip/vmhsbr.c +++ b/uip/vmhsbr.c @@ -106,7 +106,7 @@ peer2rc (struct record *rc) if (fp) { fseek (fp, 0L, SEEK_END); fprintf (fp, "%d: <--- %s %d: \"%*.*s\"\n", (int) getpid(), - types[rc->rc_type], rc->rc_len, + types[(int)rc->rc_type], rc->rc_len, rc->rc_len, rc->rc_len, rc->rc_data); fflush (fp); } @@ -127,7 +127,7 @@ rc2peer (char code, int len, char *data) if (fp) { fseek (fp, 0L, SEEK_END); fprintf (fp, "%d: ---> %s %d: \"%*.*s\"\n", (int) getpid(), - types[rc->rc_type], rc->rc_len, + types[(int)rc->rc_type], rc->rc_len, rc->rc_len, rc->rc_len, data); fflush (fp); }