aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/usbhidctl
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
commitcccdaf507eee8fb34494b4624eb85bb951e323c8 (patch)
treefe301035b431f914fc8708a9b7a351d31c35d1ba /usr.bin/usbhidctl
parent1a7ac2bd24c1763b0d32e23d9c70308fbc24b07a (diff)
downloadsrc-cccdaf507eee8fb34494b4624eb85bb951e323c8.tar.gz
src-cccdaf507eee8fb34494b4624eb85bb951e323c8.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.bin/usbhidctl')
-rw-r--r--usr.bin/usbhidctl/usbhid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/usbhidctl/usbhid.c b/usr.bin/usbhidctl/usbhid.c
index 984cdebc3289..b814aa3924d1 100644
--- a/usr.bin/usbhidctl/usbhid.c
+++ b/usr.bin/usbhidctl/usbhid.c
@@ -58,7 +58,7 @@ static int hexdump = 0;
static int wflag = 0;
static int zflag = 0;
-static void usage(void);
+static void usage(void) __dead2;
static void dumpitem(const char *label, struct hid_item *h);
static void dumpitems(report_desc_t r);
static void prdata(u_char *buf, struct hid_item *h);