aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ndp
diff options
context:
space:
mode:
authorAlfonso Gregory <gfunni234@gmail.com>2023-07-07 16:39:23 +0000
committerWarner Losh <imp@FreeBSD.org>2023-07-07 16:45:18 +0000
commita9cce232a6b930d2d1932f1f20a86a84d9cc77cd (patch)
treedbb4bb7f2b8573c2cf974703f37187c7bd7e36a8 /usr.sbin/ndp
parent72e1ea2f13619f3bd299348f281815a6669f3775 (diff)
downloadsrc-a9cce232a6b930d2d1932f1f20a86a84d9cc77cd.tar.gz
src-a9cce232a6b930d2d1932f1f20a86a84d9cc77cd.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 'usr.sbin/ndp')
-rw-r--r--usr.sbin/ndp/ndp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index 112fd099e3e0..becc04ec5f10 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -138,7 +138,7 @@ static int delete(char *);
static int dump(struct sockaddr_in6 *, int);
static struct in6_nbrinfo *getnbrinfo(struct in6_addr *, int, int);
static int ndp_ether_aton(char *, u_char *);
-static void usage(void);
+static void usage(void) __dead2;
static void ifinfo(char *, int, char **);
static void rtrlist(void);
static void plist(void);