From 4de07e4be7aa33f9401de6cf69738230f9741786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 10 Jan 2019 00:48:07 +0100 Subject: comments --- repl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repl.c b/repl.c index 665523c..a98c727 100644 --- a/repl.c +++ b/repl.c @@ -6,7 +6,7 @@ #include #include -void handle_int(int sig) { +void handle_int(int sig) { /* handle ctrl-c */ printf("\n"); rl_on_new_line(); rl_replace_line("", 0); @@ -27,7 +27,7 @@ int main(int argc, char *argv[]) { act.sa_handler = handle_int; sigaction(SIGINT, &act, NULL); - rl_clear_signals(); + rl_clear_signals(); /* tell readline to ignore signals */ while (true) { char *input = readline(prompt); -- cgit v1.2.3