diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2005-10-21 23:20:38 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2005-10-21 23:20:38 (GMT) |
commit | 260e1549d7b2ae2072b6c2e2d0ced6e4f1802719 (patch) | |
tree | 051c3c4a88a9fd4ce7fdc50c1ffb3bd5420a4375 | |
parent | c06919a82e532d46b1203dad58a1648675fcc50e (diff) | |
download | powwow-260e1549d7b2ae2072b6c2e2d0ced6e4f1802719.zip powwow-260e1549d7b2ae2072b6c2e2d0ced6e4f1802719.tar.gz powwow-260e1549d7b2ae2072b6c2e2d0ced6e4f1802719.tar.bz2 |
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.
-rw-r--r-- | tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |