Cleaned up some warnings.

This commit is contained in:
dcp1990 2005-06-02 02:44:27 +00:00
parent c1064ddc10
commit 6be4adb4c1
3 changed files with 6 additions and 6 deletions

View File

@ -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 <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define HAVE_INET_INCS
#include <phoned.h>
#include <unistd.h>

View File

@ -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';
}

View File

@ -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';