gcc v2.95 compile fixes.

This commit is contained in:
Jan Vidar Krey
2010-01-28 01:06:41 +01:00
parent db32eaeafc
commit 8e7e8c68f5
11 changed files with 49 additions and 27 deletions

View File

@@ -451,11 +451,12 @@ int ip_convert_address_to_range(const char* address, struct ip_range* range)
{
int ret = 0;
char* addr = 0;
const char* split;
if (!address || !range)
return 0;
const char* split = strrchr(address, '/');
split = strrchr(address, '/');
if (split)
{
int mask = uhub_atoi(split+1);