diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-07-16 11:58:09 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-16 12:03:46 +0200 |
commit | 95b2b47b262a7d50c22e195823d3d2cd290b0fe4 (patch) | |
tree | 96a51f2d6562d0f525511b0c3c0d40e562e9f91f /src/vty | |
parent | 87dbca148fb9c398e8d2de50ddbfc72e59ca6b26 (diff) |
get rid of non-ANSI function declarations missing (void)
Detected by Smatch
Diffstat (limited to 'src/vty')
-rw-r--r-- | src/vty/command.c | 2 | ||||
-rw-r--r-- | src/vty/vty.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/vty/command.c b/src/vty/command.c index 5dc1dd45..1c8df61a 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -152,7 +152,7 @@ static int is_config(struct vty *vty) } /* Sort each node's command element according to command string. */ -void sort_node() +void sort_node(void) { unsigned int i, j; struct cmd_node *cnode; diff --git a/src/vty/vty.c b/src/vty/vty.c index a1f0304b..1f3237ad 100644 --- a/src/vty/vty.c +++ b/src/vty/vty.c @@ -45,7 +45,7 @@ static void vty_clear_buf(struct vty *vty) } /* Allocate new vty struct. */ -struct vty *vty_new() +struct vty *vty_new(void) { struct vty *new = talloc_zero(tall_vty_ctx, struct vty); @@ -1591,7 +1591,7 @@ struct cmd_node vty_node = { }; /* Reset all VTY status. */ -void vty_reset() +void vty_reset(void) { unsigned int i; struct vty *vty; @@ -1631,7 +1631,7 @@ static void vty_save_cwd(void) strcpy(vty_cwd, cwd); } -char *vty_get_cwd() +char *vty_get_cwd(void) { return vty_cwd; } @@ -1641,7 +1641,7 @@ int vty_shell_serv(struct vty *vty) return vty->type == VTY_SHELL_SERV ? 1 : 0; } -void vty_init_vtysh() +void vty_init_vtysh(void) { vtyvec = vector_init(VECTOR_MIN_SIZE); } |