mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 20:06:06 +00:00
lib: Remove global variable exposure struct host host
This was only used in one place and we have accessor functions now. So let's use them. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
9ca6d3db2b
commit
8586a88abb
@ -619,9 +619,6 @@ extern void print_version(const char *);
|
||||
extern int cmd_banner_motd_file(const char *);
|
||||
extern void cmd_banner_motd_line(const char *line);
|
||||
|
||||
/* struct host global, ick */
|
||||
extern struct host host;
|
||||
|
||||
struct cmd_variable_handler {
|
||||
const char *tokenname, *varname;
|
||||
void (*completions)(vector out, struct cmd_token *token);
|
||||
|
@ -49,8 +49,8 @@ int main(int argc, char **argv)
|
||||
|
||||
/* Library inits. */
|
||||
cmd_init(1);
|
||||
host.name = strdup("test");
|
||||
host.domainname = strdup("testdomainname");
|
||||
cmd_hostname_set("test");
|
||||
cmd_domainname_set("testdomainname");
|
||||
|
||||
vty_init(master, true);
|
||||
lib_cmd_init();
|
||||
|
Loading…
Reference in New Issue
Block a user