Mercurial > pidgin.yaz
comparison src/protocols/silc/util.c @ 8910:26c9b8761707
[gaim-migrate @ 9680]
a patch from wing to fix some grammer and puctuation (but not my spelling),
and some white space
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 09 May 2004 04:06:58 +0000 |
parents | 50d0f76639e7 |
children | bf4ecb0ae208 |
comparison
equal
deleted
inserted
replaced
8909:87e171358001 | 8910:26c9b8761707 |
---|---|
46 if (silc_net_is_ip4(ip)) { | 46 if (silc_net_is_ip4(ip)) { |
47 if (!strncmp(ip, "10.", 3)) { | 47 if (!strncmp(ip, "10.", 3)) { |
48 return TRUE; | 48 return TRUE; |
49 } else if (!strncmp(ip, "172.", 4) && strlen(ip) > 6) { | 49 } else if (!strncmp(ip, "172.", 4) && strlen(ip) > 6) { |
50 char tmp[3]; | 50 char tmp[3]; |
51 int s; | |
51 memset(tmp, 0, sizeof(tmp)); | 52 memset(tmp, 0, sizeof(tmp)); |
52 strncpy(tmp, ip + 4, 2); | 53 strncpy(tmp, ip + 4, 2); |
53 int s = atoi(tmp); | 54 s = atoi(tmp); |
54 if (s >= 16 && s <= 31) | 55 if (s >= 16 && s <= 31) |
55 return TRUE; | 56 return TRUE; |
56 } else if (!strncmp(ip, "192.168.", 8)) { | 57 } else if (!strncmp(ip, "192.168.", 8)) { |
57 return TRUE; | 58 return TRUE; |
58 } | 59 } |