diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2017-01-26 21:57:46 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-01-31 15:28:39 +0100 |
| commit | bff9c3e9d3270a524eee693f4d44cd83f13e9963 (patch) | |
| tree | 26f6e76ab0228fdda33e5a438d7b50e27fa91bae /lib/command.h | |
| parent | 0d9e204694fbdff2ad6c8441ba3008907ddec3db (diff) | |
lib/tests: add cmd_hostname_set()
To make it possible for testcli to get a clean memory management bill.
(Note: XFREE() is NULL-safe, just like free().)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/command.h')
| -rw-r--r-- | lib/command.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h index 3c3c3ae370..8986703708 100644 --- a/lib/command.h +++ b/lib/command.h @@ -424,6 +424,8 @@ extern void cmd_terminate (void); extern void cmd_exit (struct vty *vty); extern int cmd_list_cmds (struct vty *vty, int do_permute); +extern int cmd_hostname_set (const char *hostname); + /* NOT safe for general use; call this only if DEV_BUILD! */ extern void grammar_sandbox_init (void); |
