From 260e1549d7b2ae2072b6c2e2d0ced6e4f1802719 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Fri, 21 Oct 2005 23:20:38 +0000 Subject: Added some casts because byte is unsigned char and some functions in main wanted to have signed chars, this was the previous behaviour but the compiler spit out warnings, now it shouldn't anymore. diff --git a/tcp.c b/tcp.c index a6ae2f0..fbb5812 100644 --- a/tcp.c +++ b/tcp.c @@ -377,7 +377,7 @@ int tcp_read __P3 (int,fd, char *,buffer, int,maxsize) /* no MPI messages after \n\r */ PRINTF("#warning: MPI attack?\n"); } else { - subchars = process_message(s+1, i-1); + subchars = process_message((char*)s+1, i-1); /* no +MPILEN here, as it was already processed. */ s += subchars; i-= subchars; p = linestart; @@ -411,7 +411,7 @@ int tcp_read __P3 (int,fd, char *,buffer, int,maxsize) case GA: /* I should handle GA as end-of-prompt marker one day */ /* one day has come ;) - Max */ - prompt_set_iac(p); + prompt_set_iac((char*)p); state = NORMAL; break; default: -- cgit v0.10.2