gcc v2.95 compile fixes.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -229,6 +229,7 @@ int file_read_lines(const char* file, void* data, file_line_handler_t handler)
|
||||
int fd;
|
||||
ssize_t ret;
|
||||
char buf[MAX_RECV_BUF];
|
||||
struct file_read_line_data split_data;
|
||||
|
||||
memset(buf, 0, MAX_RECV_BUF);
|
||||
|
||||
@@ -256,7 +257,6 @@ int file_read_lines(const char* file, void* data, file_line_handler_t handler)
|
||||
}
|
||||
|
||||
/* Parse configuaration */
|
||||
struct file_read_line_data split_data;
|
||||
split_data.handler = handler;
|
||||
split_data.data = data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user