Commit 13dee6f4 authored by Simon Kelley's avatar Simon Kelley

Compilation warning fixes.

parent 62f9c0d4
...@@ -549,8 +549,7 @@ static DBusMessage *dbus_add_lease(DBusMessage* message) ...@@ -549,8 +549,7 @@ static DBusMessage *dbus_add_lease(DBusMessage* message)
return dbus_message_new_error_printf(message, DBUS_ERROR_INVALID_ARGS, return dbus_message_new_error_printf(message, DBUS_ERROR_INVALID_ARGS,
"Invalid IP address '%s'", ipaddr); "Invalid IP address '%s'", ipaddr);
hw_len = parse_hex((char*)hwaddr, dhcp_chaddr, DHCP_CHADDR_MAX, NULL, hw_len = parse_hex((char*)hwaddr, dhcp_chaddr, DHCP_CHADDR_MAX, NULL, &hw_type);
&hw_type);
if (hw_type == 0 && hw_len != 0) if (hw_type == 0 && hw_len != 0)
hw_type = ARPHRD_ETHER; hw_type = ARPHRD_ETHER;
......
...@@ -4089,7 +4089,7 @@ static void read_file(char *file, FILE *f, int hard_opt) ...@@ -4089,7 +4089,7 @@ static void read_file(char *file, FILE *f, int hard_opt)
{ {
int white, i; int white, i;
volatile int option = (hard_opt == LOPT_REV_SERV) ? 0 : hard_opt; volatile int option = (hard_opt == LOPT_REV_SERV) ? 0 : hard_opt;
char *errmess, *p, *arg = NULL, *start; char *errmess, *p, *arg, *start;
size_t len; size_t len;
/* Memory allocation failure longjmps here if mem_recover == 1 */ /* Memory allocation failure longjmps here if mem_recover == 1 */
...@@ -4100,6 +4100,7 @@ static void read_file(char *file, FILE *f, int hard_opt) ...@@ -4100,6 +4100,7 @@ static void read_file(char *file, FILE *f, int hard_opt)
mem_recover = 1; mem_recover = 1;
} }
arg = NULL;
lineno++; lineno++;
errmess = NULL; errmess = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment