summaryrefslogtreecommitdiff
path: root/client/birdcl.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2016-05-12 21:47:50 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2016-05-12 21:49:52 +0200
commitb66a9e2f3376b4cb07ef4cc318f70a9c794f407a (patch)
treec4f7ef483ec2d2c7bac4f605d2aed0b3ab7b738d /client/birdcl.c
parent659f80f262a83d600d5f095fb8a03e912d3fbe64 (diff)
parent3f2c7600fa2e35b1028c755aa06092b5991e1a8e (diff)
Merge branch 'master' into int-new
Diffstat (limited to 'client/birdcl.c')
-rw-r--r--client/birdcl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/birdcl.c b/client/birdcl.c
index 2d5e1067..7b567a9f 100644
--- a/client/birdcl.c
+++ b/client/birdcl.c
@@ -11,6 +11,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <termios.h>
+#include <errno.h>
#include <sys/ioctl.h>
#include <signal.h>
@@ -109,7 +110,7 @@ more_begin(void)
tty.c_lflag &= (~ICANON);
if (tcsetattr (0, TCSANOW, &tty) < 0)
- die("tcsetattr: %m");
+ DIE("tcsetattr");
more_active = 1;
}
@@ -120,7 +121,7 @@ more_end(void)
more_active = 0;
if (tcsetattr (0, TCSANOW, &stored_tty) < 0)
- die("tcsetattr: %m");
+ DIE("tcsetattr");
}
static void
@@ -137,7 +138,7 @@ input_init(void)
return;
if (tcgetattr(0, &stored_tty) < 0)
- die("tcgetattr: %m");
+ DIE("tcgetattr");
if (signal(SIGINT, sig_handler) == SIG_IGN)
signal(SIGINT, SIG_IGN);