From 5fc7e12e8c45a78bddb8e68b6c69653f8d30d11c Mon Sep 17 00:00:00 2001 From: Dan Harkless Date: Tue, 25 Jan 2000 05:50:12 +0000 Subject: [PATCH] Typecast to get rid of warnings that array index into types[] is a char. --- uip/vmhsbr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 1.7.10.4