aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2005-10-21 23:20:38 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2005-10-21 23:20:38 (GMT)
commit260e1549d7b2ae2072b6c2e2d0ced6e4f1802719 (patch)
tree051c3c4a88a9fd4ce7fdc50c1ffb3bd5420a4375
parentc06919a82e532d46b1203dad58a1648675fcc50e (diff)
downloadpowwow-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.c4
1 files changed, 2 insertions, 2 deletions
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: