aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/nscd
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/nscd
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/nscd')
-rw-r--r--usr.sbin/nscd/nscd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/nscd/nscd.c b/usr.sbin/nscd/nscd.c
index 8a569a2dc9ab..14d0a6780bf4 100644
--- a/usr.sbin/nscd/nscd.c
+++ b/usr.sbin/nscd/nscd.c
@@ -85,7 +85,7 @@ static void process_socket_event(struct kevent *, struct runtime_env *,
static void process_timer_event(struct kevent *, struct runtime_env *,
struct configuration *);
static void *processing_thread(void *);
-static void usage(void);
+static void usage(void) __dead2;
void get_time_func(struct timeval *);