Avoid warnings.

This commit is contained in:
Bodo Möller
1999-06-10 16:29:32 +00:00
parent 9d9b559ef0
commit d58d092bc9
21 changed files with 47 additions and 43 deletions

View File

@@ -494,7 +494,7 @@ int host_ip(char *str, unsigned char ip[4])
unsigned int in[4];
int i;
if (sscanf(str,"%d.%d.%d.%d",&(in[0]),&(in[1]),&(in[2]),&(in[3])) == 4)
if (sscanf(str,"%u.%u.%u.%u",&(in[0]),&(in[1]),&(in[2]),&(in[3])) == 4)
{
for (i=0; i<4; i++)
if (in[i] > 255)