aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-12-30 15:14:37 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-12-30 15:14:37 +0100
commit329a4f5b40c85077859ad8be2830d1e3511c10d0 (patch)
treeeaa54dff5aafad4733812cc048fd6522dfd07b76
parent9b8caac033386c242c1ef774c0cd738c8ff9c09a (diff)
Remove unreachable()
-rw-r--r--grab.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/grab.c b/grab.c
index 272fe3c..0eb2dbc 100644
--- a/grab.c
+++ b/grab.c
@@ -16,12 +16,6 @@
# error "REG_STARTEND not defined"
#endif
-#ifdef __GNUC__
-# define unreachable() __builtin_unreachable()
-#else
-# define unreachable()
-#endif
-
#define die(...) err(EXIT_FAILURE, __VA_ARGS__);
#define diex(...) errx(EXIT_FAILURE, __VA_ARGS__);
#define warn(...) \
@@ -107,9 +101,8 @@ main(int argc, char **argv)
while ((opt = getopt(argc, argv, "hz")) != -1) {
switch (opt) {
case 'h':
- if (execlp("man", "man", "1", argv[0], NULL) == -1)
- die("execlp: man 1 %s", argv[0]);
- unreachable();
+ execlp("man", "man", "1", argv[0], NULL);
+ die("execlp: man 1 %s", argv[0]);
case 'z':
delim = '\0';
break;