diff options
author | benno <benno@openbsd.org> | 2017-07-04 21:09:52 +0000 |
---|---|---|
committer | benno <benno@openbsd.org> | 2017-07-04 21:09:52 +0000 |
commit | d9ce961d34d3dd96dc79e4008d9468f83eb98d47 (patch) | |
tree | 801d5784fcefc605c38d80089a9a3a09bf1321fd /usr.sbin/ifstated | |
parent | Fix some variable alignment whitespace. (diff) | |
download | wireguard-openbsd-d9ce961d34d3dd96dc79e4008d9468f83eb98d47.tar.xz wireguard-openbsd-d9ce961d34d3dd96dc79e4008d9468f83eb98d47.zip |
rename fetch_state() to fetch_ifstate(). The word "state" is a bit
overloaded in this daemon.
From Rob Pierce
Diffstat (limited to 'usr.sbin/ifstated')
-rw-r--r-- | usr.sbin/ifstated/ifstated.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ifstated/ifstated.c b/usr.sbin/ifstated/ifstated.c index 0278da255e3..e101e6a5e8f 100644 --- a/usr.sbin/ifstated/ifstated.c +++ b/usr.sbin/ifstated/ifstated.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifstated.c,v 1.49 2017/07/03 18:45:34 benno Exp $ */ +/* $OpenBSD: ifstated.c,v 1.50 2017/07/04 21:09:52 benno Exp $ */ /* * Copyright (c) 2004 Marco Pfatschbacher <mpf@openbsd.org> @@ -64,7 +64,7 @@ void check_external_status(struct ifsd_state *); void external_evtimer_setup(struct ifsd_state *, int); void scan_ifstate(int, int, int); int scan_ifstate_single(int, int, struct ifsd_state *); -void fetch_state(void); +void fetch_ifstate(void); __dead void usage(void); void adjust_expressions(struct ifsd_expression_list *, int); void adjust_external_expressions(struct ifsd_state *); @@ -208,7 +208,7 @@ load_config(void) clear_config(conf); conf = newconf; conf->initstate.entered = time(NULL); - fetch_state(); + fetch_ifstate(); external_evtimer_setup(&conf->initstate, IFSD_EVTIMER_ADD); adjust_external_expressions(&conf->initstate); eval_state(&conf->initstate); @@ -597,7 +597,7 @@ do_action(struct ifsd_action *action) * Fetch the current link states. */ void -fetch_state(void) +fetch_ifstate(void) { struct ifaddrs *ifap, *ifa; char *oname = NULL; |