Don't use the NONE enum value where NULL was intended. Found with clang.
authorjsg <jsg@openbsd.org>
Wed, 14 Oct 2015 13:27:50 +0000 (13:27 +0000)
committerjsg <jsg@openbsd.org>
Wed, 14 Oct 2015 13:27:50 +0000 (13:27 +0000)
ok renato@

usr.sbin/eigrpctl/parser.c

index ec94079..d01f05b 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: parser.c,v 1.1 2015/10/02 04:31:52 renato Exp $ */
+/*     $OpenBSD: parser.c,v 1.2 2015/10/14 13:27:50 jsg Exp $ */
 
 /*
  * Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@@ -133,8 +133,8 @@ static const struct token t_show_topology[] = {
        {KEYWORD,       "family",       NONE,           t_show_topology_af},
        {KEYWORD,       "as",           NONE,           t_show_topology_as},
        {PREFIX,        "",             NONE,           NULL},
-       {FLAG,          "active",       F_CTL_ACTIVE,   NONE},
-       {FLAG,          "all-links",    F_CTL_ALLLINKS, NONE},
+       {FLAG,          "active",       F_CTL_ACTIVE,   NULL},
+       {FLAG,          "all-links",    F_CTL_ALLLINKS, NULL},
        {ENDTOKEN,      "",             NONE,           NULL}
 };