aboutsummaryrefslogtreecommitdiff
path: root/grab.c
diff options
context:
space:
mode:
Diffstat (limited to 'grab.c')
-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;