summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorRuben Kerkhof <ruben@rubenkerkhof.com>2019-01-24 10:12:36 +0100
committerRuben Kerkhof <ruben@rubenkerkhof.com>2019-01-24 11:21:59 +0100
commit4d762f2607f07b55f464bae4ec0eb7fdf7c656a9 (patch)
treec8e9c8056c9fec104ec152ccf254c282fa6a90c6 /lib/vty.c
parent262d4dda2aa009f200370a4c4635899ceb85ab90 (diff)
Treewide: use ANSI function definitions
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 8450922c2b..d6fda8cbb4 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -1605,7 +1605,7 @@ static int vty_flush(struct thread *thread)
}
/* Allocate new vty struct. */
-struct vty *vty_new()
+struct vty *vty_new(void)
{
struct vty *new = XCALLOC(MTYPE_VTY, sizeof(struct vty));
@@ -3035,7 +3035,7 @@ struct cmd_node vty_node = {
};
/* Reset all VTY status. */
-void vty_reset()
+void vty_reset(void)
{
unsigned int i;
struct vty *vty;
@@ -3100,7 +3100,7 @@ static void vty_save_cwd(void)
strcpy(vty_cwd, cwd);
}
-char *vty_get_cwd()
+char *vty_get_cwd(void)
{
return vty_cwd;
}
@@ -3115,7 +3115,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);
}