diff options
Diffstat (limited to 'vtysh')
-rwxr-xr-x | vtysh/extract.pl.in | 3 | ||||
-rw-r--r-- | vtysh/vtysh.c | 2 | ||||
-rw-r--r-- | vtysh/vtysh_config.c | 4 | ||||
-rw-r--r-- | vtysh/vtysh_user.c | 2 |
4 files changed, 5 insertions, 6 deletions
diff --git a/vtysh/extract.pl.in b/vtysh/extract.pl.in index 2b48f1f36..332fd248c 100755 --- a/vtysh/extract.pl.in +++ b/vtysh/extract.pl.in @@ -248,8 +248,7 @@ foreach (sort keys %live) { # Output install_element print <<EOF; -void -vtysh_init_cmd () +void vtysh_init_cmd(void) { EOF diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 6cf45789d..340c9be60 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -3464,7 +3464,7 @@ static const struct cmd_variable_handler vtysh_var_handler[] = { .completions = vtysh_autocomplete}, {.completions = NULL}}; -void vtysh_uninit() +void vtysh_uninit(void) { if (vty->of != stdout) fclose(vty->of); diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index fe12f82ef..91e49c45c 100644 --- a/vtysh/vtysh_config.c +++ b/vtysh/vtysh_config.c @@ -516,7 +516,7 @@ int vtysh_read_config(const char *config_default_dir) * be edited by hand. So, we handle only "write terminal" case here and * integrate vtysh specific conf with conf from daemons. */ -void vtysh_config_write() +void vtysh_config_write(void) { char line[81]; @@ -539,7 +539,7 @@ void vtysh_config_write() user_config_write(); } -void vtysh_config_init() +void vtysh_config_init(void) { config_top = list_new(); config_top->del = (void (*)(void *))line_del; diff --git a/vtysh/vtysh_user.c b/vtysh/vtysh_user.c index e575b7154..dcf8ca047 100644 --- a/vtysh/vtysh_user.c +++ b/vtysh/vtysh_user.c @@ -122,7 +122,7 @@ static struct vtysh_user *user_lookup(const char *name) return NULL; } -void user_config_write() +void user_config_write(void) { struct listnode *node, *nnode; struct vtysh_user *user; |