diff options
author | Shav Kinderlehrer <[email protected]> | 2023-04-26 18:05:13 -0400 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2023-04-26 18:05:13 -0400 |
commit | 36af47eab84fb9ec1f60331fbd0d8c7a85698954 (patch) | |
tree | 35097536013c6b222400957448e10a2686054279 /src/lib/util.c | |
parent | cf740c34c36bf95d6d7ab6c1c032295be191db5a (diff) | |
download | lat-36af47eab84fb9ec1f60331fbd0d8c7a85698954.tar.gz lat-36af47eab84fb9ec1f60331fbd0d8c7a85698954.zip |
Cleanup
- 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.c | 4 |
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); } |