mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Make interfaces pointer private to interfaces.c and add get_interfaces()
accessor.
This commit is contained in:
@@ -52,6 +52,8 @@
|
||||
# define INADDR_NONE ((unsigned int)-1)
|
||||
#endif
|
||||
|
||||
static struct interface *interfaces;
|
||||
|
||||
/*
|
||||
* Parse a space-delimited list of IP address/netmask pairs and
|
||||
* store in a list of interface structures.
|
||||
@@ -101,6 +103,12 @@ set_interfaces(const char *ai)
|
||||
debug_return;
|
||||
}
|
||||
|
||||
struct interface *
|
||||
get_interfaces(void)
|
||||
{
|
||||
return interfaces;
|
||||
}
|
||||
|
||||
void
|
||||
dump_interfaces(const char *ai)
|
||||
{
|
||||
|
Reference in New Issue
Block a user