summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eigrpd/eigrp_dump.c2
-rw-r--r--lib/command.c2
-rw-r--r--lib/command_graph.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/eigrpd/eigrp_dump.c b/eigrpd/eigrp_dump.c
index 6a0d7a2b68..e841882c3f 100644
--- a/eigrpd/eigrp_dump.c
+++ b/eigrpd/eigrp_dump.c
@@ -312,7 +312,7 @@ show_ip_eigrp_prefix_entry (struct vty *vty, struct eigrp_prefix_entry *tn)
vty_out (vty, "%-3c",(tn->state > 0) ? 'A' : 'P');
vty_out (vty, "%s/%u, ",inet_ntoa (tn->destination_ipv4->prefix),tn->destination_ipv4->prefixlen);
vty_out (vty, "%u successors, ",eigrp_topology_get_successor(tn)->count);
- vty_out (vty, "FD is %u, serno: %lu %s",tn->fdistance, tn->serno, VTY_NEWLINE);
+ vty_out (vty, "FD is %u, serno: %" PRIu64 " %s",tn->fdistance, tn->serno, VTY_NEWLINE);
}
void
diff --git a/lib/command.c b/lib/command.c
index c64d38f22d..452a559998 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -323,6 +323,7 @@ install_element (enum node_type ntype, struct cmd_element *cmd)
{
fprintf (stderr, "Command node %d doesn't exist, please check it\n",
ntype);
+ fprintf (stderr, "Have you called install_node before this install_element?\n");
exit (EXIT_FAILURE);
}
@@ -370,6 +371,7 @@ uninstall_element (enum node_type ntype, struct cmd_element *cmd)
{
fprintf (stderr, "Command node %d doesn't exist, please check it\n",
ntype);
+ fprintf (stderr, "Have you called install_node before this install_element?\n");
exit (EXIT_FAILURE);
}
diff --git a/lib/command_graph.c b/lib/command_graph.c
index 6b6c0369f0..8cfb333575 100644
--- a/lib/command_graph.c
+++ b/lib/command_graph.c
@@ -26,8 +26,6 @@
#include "command_graph.h"
-DECLARE_MTYPE(CMD_TOKEN_DATA)
-
DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command Tokens")
DEFINE_MTYPE_STATIC(LIB, CMD_DESC, "Command Token Text")
DEFINE_MTYPE_STATIC(LIB, CMD_TEXT, "Command Token Help")