aboutsummaryrefslogtreecommitdiff
path: root/sbin/swapon/swapon.c
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:17 +0000
commit65f3be91104cb27bbdd1997240edd6024bd95136 (patch)
tree6304b0e0203d7dc90c843d4c8483d0162a769d57 /sbin/swapon/swapon.c
parent69c0fb2a7a6f8145102f3ef370410fc380735e1c (diff)
downloadsrc-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/swapon/swapon.c')
-rw-r--r--sbin/swapon/swapon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/swapon/swapon.c b/sbin/swapon/swapon.c
index 4daa6e8b17ee..d98f63b153d0 100644
--- a/sbin/swapon/swapon.c
+++ b/sbin/swapon/swapon.c
@@ -68,7 +68,7 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#include <unistd.h>
-static void usage(void);
+static void usage(void) __dead2;
static const char *swap_on_off(const char *, int, char *);
static const char *swap_on_off_gbde(const char *, int);
static const char *swap_on_off_geli(const char *, char *, int);