aboutsummaryrefslogtreecommitdiff
path: root/src/lib/util.c
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2023-04-26 18:05:13 -0400
committerShav Kinderlehrer <[email protected]>2023-04-26 18:05:13 -0400
commit7e24ad39b1e926339cbe3ec295791d0f608a91df (patch)
treedfcfde5c7b6c4afc3a0ba16d125a3131f862cd87 /src/lib/util.c
parent77c2d0ea4ad366104f082b6670b6af03fc45e497 (diff)
downloadlat-7e24ad39b1e926339cbe3ec295791d0f608a91df.tar.gz
lat-7e24ad39b1e926339cbe3ec295791d0f608a91df.zip
Cleanupv0.12.1
- Cleanup unneeded headers - Fix helptext typos/bugs - add noreturn to die(), and equiv
Diffstat (limited to 'src/lib/util.c')
-rw-r--r--src/lib/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util.c b/src/lib/util.c
index d66579d..1a8f1e8 100644
--- a/src/lib/util.c
+++ b/src/lib/util.c
@@ -1,8 +1,8 @@
#include <stdio.h>
#include <stdlib.h>
-#include <sys/ioctl.h>
+#include <stdnoreturn.h>
-void die(const char *message) {
+noreturn void die(const char *message) {
perror(message);
exit(EXIT_FAILURE);
}