Fix FTBFS when -DNO_DHCP - thanks Sung Pae.

This commit is contained in:
Simon Kelley
2012-08-09 16:19:01 +01:00
parent 132255b5da
commit c740e4f342

View File

@@ -601,6 +601,8 @@ static void do_usage(void)
} }
} }
#define ret_err(x) do { strcpy(errstr, (x)); return 0; } while (0)
#ifdef HAVE_DHCP #ifdef HAVE_DHCP
static int is_tag_prefix(char *arg) static int is_tag_prefix(char *arg)
@@ -619,8 +621,6 @@ static char *set_prefix(char *arg)
return arg; return arg;
} }
#define ret_err(x) do { strcpy(errstr, (x)); return 0; } while (0)
/* This is too insanely large to keep in-line in the switch */ /* This is too insanely large to keep in-line in the switch */
static int parse_dhcp_opt(char *errstr, char *arg, int flags) static int parse_dhcp_opt(char *errstr, char *arg, int flags)
{ {