2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-01 06:45:27 +00:00

[master] Hnadle dhcpv6 being disabled better

The previous patches didn't handle dhvpv6 being disabled well.
    This change moves the #ifdefs a bit to handle it.
This commit is contained in:
Shawn Routhier
2016-01-12 12:33:26 -08:00
parent 75ab52e12b
commit eda1d0aa5a
4 changed files with 13 additions and 7 deletions

View File

@@ -183,9 +183,11 @@ char *progname;
* \return Nothing
*/
static const char use_noarg[] = "No argument for command: %s";
#ifdef DHCPv6
static const char use_badproto[] = "Protocol already set, %s inappropriate";
static const char use_v4command[] = "Command not used for DHCPv6: %s";
static const char use_v6command[] = "Command not used for DHCPv4: %s";
#endif
static void
usage(const char *sfmt, const char *sarg) {