diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-04-18 21:34:36 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-04-18 21:34:36 +0000 |
commit | aa61582c1cc12bd889242d100faf692d31489273 (patch) | |
tree | 5de6c09ee38de14bcd5a30fb9e2525fcb7269b26 | |
parent | c4d29c55a9a02e2fa5343ace0cea5792c426c99d (diff) | |
download | mktuntap-aa61582c1cc12bd889242d100faf692d31489273.tar mktuntap-aa61582c1cc12bd889242d100faf692d31489273.tar.gz mktuntap-aa61582c1cc12bd889242d100faf692d31489273.tar.bz2 mktuntap-aa61582c1cc12bd889242d100faf692d31489273.tar.lz mktuntap-aa61582c1cc12bd889242d100faf692d31489273.tar.xz mktuntap-aa61582c1cc12bd889242d100faf692d31489273.tar.zst mktuntap-aa61582c1cc12bd889242d100faf692d31489273.zip |
Improve ex_usage() signature
Signed-off-by: Alyssa Ross <hi@alyssa.is>
-rw-r--r-- | mktuntap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mktuntap.c b/mktuntap.c index a9457c6..f2995d2 100644 --- a/mktuntap.c +++ b/mktuntap.c @@ -7,6 +7,7 @@ #include <stdbool.h> #include <stdio.h> #include <stdlib.h> +#include <stdnoreturn.h> #include <string.h> #include <sysexits.h> #include <unistd.h> @@ -44,7 +45,7 @@ int tuntap_alloc(char *dev, int open_flags, short ifr_flags_) return fd; } -void ex_usage() +noreturn void ex_usage(void) { fputs("mktuntap: usage: mktuntap (-n | -p) [-v] [-B] [-P] [-E] [-i ifr_name] fd prog...\n", stderr); exit(EX_USAGE); |