Browse Source

Fix compilation warnings

They've been annoying me since I started working on netcfg; I finally got up
the grrrrrrr to fix them.  Clean builds ftw!
tags/1.60
Matt Palmer Matt Palmer 10 years ago
parent
commit
cde632866c
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      dhcp.c
  2. +1
    -1
      netcfg.h

+ 1
- 1
dhcp.c View File

@@ -222,7 +222,7 @@ int start_dhcp_client (struct debconfclient *client, char* dhostname)
arguments[options_count++] = dhcp_seconds_str;
for (ptr = dhclient_request_options_udhcpc; *ptr; ptr++) {
arguments[options_count++] = "-O";
arguments[options_count++] = *ptr;
arguments[options_count++] = (char *)*ptr;
}

if (dhostname) {


+ 1
- 1
netcfg.h View File

@@ -27,7 +27,7 @@
# define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
#endif

#define empty_str(s) (s && *s == '\0')
#define empty_str(s) (s != NULL && *s == '\0')

#define HELPFUL_COMMENT \
"# This file describes the network interfaces available on your system\n" \


Loading…
Cancel
Save