diff options
author | benno <benno@openbsd.org> | 2017-06-28 10:38:16 +0000 |
---|---|---|
committer | benno <benno@openbsd.org> | 2017-06-28 10:38:16 +0000 |
commit | bce9047daeb651822a9bd2da37bb74bd0003e041 (patch) | |
tree | 8a8783b1518cd889129c8531e4f6ff017b54e351 /usr.sbin/ifstated | |
parent | and emphasize that PKGDIR must exist. (diff) | |
download | wireguard-openbsd-bce9047daeb651822a9bd2da37bb74bd0003e041.tar.xz wireguard-openbsd-bce9047daeb651822a9bd2da37bb74bd0003e041.zip |
usage() gets __dead attribute, from Rob Pierce
Diffstat (limited to 'usr.sbin/ifstated')
-rw-r--r-- | usr.sbin/ifstated/ifstated.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/usr.sbin/ifstated/ifstated.c b/usr.sbin/ifstated/ifstated.c index f67e0d708ae..b71791b915f 100644 --- a/usr.sbin/ifstated/ifstated.c +++ b/usr.sbin/ifstated/ifstated.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifstated.c,v 1.43 2017/06/27 20:46:34 benno Exp $ */ +/* $OpenBSD: ifstated.c,v 1.44 2017/06/28 10:38:16 benno Exp $ */ /* * Copyright (c) 2004 Marco Pfatschbacher <mpf@openbsd.org> @@ -53,28 +53,28 @@ int opt_inhibit = 0; char *configfile = "/etc/ifstated.conf"; struct event rt_msg_ev, sighup_ev, startup_ev, sigchld_ev; -void startup_handler(int, short, void *); -void sighup_handler(int, short, void *); -int load_config(void); -void sigchld_handler(int, short, void *); -void rt_msg_handler(int, short, void *); -void external_handler(int, short, void *); -void external_exec(struct ifsd_external *, int); -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 usage(void); -void adjust_expressions(struct ifsd_expression_list *, int); -void adjust_external_expressions(struct ifsd_state *); -void eval_state(struct ifsd_state *); -int state_change(void); -void do_action(struct ifsd_action *); -void remove_action(struct ifsd_action *, struct ifsd_state *); -void remove_expression(struct ifsd_expression *, struct ifsd_state *); - -void +void startup_handler(int, short, void *); +void sighup_handler(int, short, void *); +int load_config(void); +void sigchld_handler(int, short, void *); +void rt_msg_handler(int, short, void *); +void external_handler(int, short, void *); +void external_exec(struct ifsd_external *, int); +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); +__dead void usage(void); +void adjust_expressions(struct ifsd_expression_list *, int); +void adjust_external_expressions(struct ifsd_state *); +void eval_state(struct ifsd_state *); +int state_change(void); +void do_action(struct ifsd_action *); +void remove_action(struct ifsd_action *, struct ifsd_state *); +void remove_expression(struct ifsd_expression *, struct ifsd_state *); + +__dead void usage(void) { extern char *__progname; |