From 6be4adb4c15b2d646d1c8fb8f7688fb86f4efe58 Mon Sep 17 00:00:00 2001 From: dcp1990 Date: Thu, 2 Jun 2005 02:44:27 +0000 Subject: [PATCH] Cleaned up some warnings. --- phoned/cfg.c | 3 ++- phoned/modem.c | 5 +++-- phoned/socket.c | 4 +--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/phoned/cfg.c b/phoned/cfg.c index b00d8e2..a9eaedb 100644 --- a/phoned/cfg.c +++ b/phoned/cfg.c @@ -2,12 +2,13 @@ * FUCK....lex overwrote this :-( * (C)2005, Dan Ponte...again. */ -/* $Amigan: phoned/phoned/cfg.c,v 1.3 2005/06/02 02:40:52 dcp1990 Exp $ */ +/* $Amigan: phoned/phoned/cfg.c,v 1.4 2005/06/02 02:44:27 dcp1990 Exp $ */ #include #include #include #include #include +#include #define HAVE_INET_INCS #include #include diff --git a/phoned/modem.c b/phoned/modem.c index 42795e4..00e009b 100644 --- a/phoned/modem.c +++ b/phoned/modem.c @@ -48,7 +48,7 @@ /* globals */ FILE* modem; int modemfd; -int cou = 0; +unsigned int cou = 0; char buffer[512]; short doing_cid = 0; void stmod(const char* str) @@ -101,7 +101,8 @@ int init_modem(char* dev) } int modem_evalrc(char* result) { - int rescode, i; + int rescode; + unsigned int i; for(i = 0; i <= strlen(result); i++) { if(result[i] == '\r' || result[i] == '\n') result[i] = '\0'; } diff --git a/phoned/socket.c b/phoned/socket.c index 128a4e6..137eaf4 100644 --- a/phoned/socket.c +++ b/phoned/socket.c @@ -59,10 +59,8 @@ void handclient(sk) void network(void) /* name is misleading because we also do modem IO here */ { - int s, us, sn; + int s, /* us,*/ sn; fd_set fds; - struct timeval tv; - int si = 1; int sin_size, ilen; char cbuf[1]; cbuf[0] = '\0'; cbuf[1] = '\0';