diff options
author | Alfonso Gregory <gfunni234@gmail.com> | 2023-07-07 16:39:23 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2023-07-07 16:45:17 +0000 |
commit | 65f3be91104cb27bbdd1997240edd6024bd95136 (patch) | |
tree | 6304b0e0203d7dc90c843d4c8483d0162a769d57 /sbin/nos-tun | |
parent | 69c0fb2a7a6f8145102f3ef370410fc380735e1c (diff) | |
download | src-65f3be91104cb27bbdd1997240edd6024bd95136.tar.gz src-65f3be91104cb27bbdd1997240edd6024bd95136.zip |
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the
cases where they do return, they have not been marked __dead2.
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/735
Diffstat (limited to 'sbin/nos-tun')
-rw-r--r-- | sbin/nos-tun/nos-tun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/nos-tun/nos-tun.c b/sbin/nos-tun/nos-tun.c index b31fef273d39..509f928a2bb8 100644 --- a/sbin/nos-tun/nos-tun.c +++ b/sbin/nos-tun/nos-tun.c @@ -89,7 +89,7 @@ static struct ifreq ifrq; int net; /* socket descriptor */ int tun; /* tunnel descriptor */ -static void usage(void); +static void usage(void) __dead2; static int Set_address(char *addr, struct sockaddr_in *sin) |