From ca6942724a11029858f1aced8b7fb1be2dc90eae Mon Sep 17 00:00:00 2001 From: Vysheng Date: Mon, 12 Jan 2015 21:04:51 +0300 Subject: [PATCH] fixed indents --- interface.c | 12 ++++++------ main.c | 5 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/interface.c b/interface.c index 62ea4dc..2b76f3b 100644 --- a/interface.c +++ b/interface.c @@ -934,16 +934,16 @@ void do_status_offline (int arg_num, struct arg args[], struct in_ev *ev) { } void do_quit (int arg_num, struct arg args[], struct in_ev *ev) { - if (daemonize) - event_incoming (ev->bev, BEV_EVENT_EOF, ev); - //bufferevent_free(ev->bev); + if (daemonize) { + event_incoming (ev->bev, BEV_EVENT_EOF, ev); + } do_halt (0); } void do_safe_quit (int arg_num, struct arg args[], struct in_ev *ev) { - if (daemonize) - event_incoming (ev->bev, BEV_EVENT_EOF, ev); - //bufferevent_free(ev->bev); + if (daemonize) { + event_incoming (ev->bev, BEV_EVENT_EOF, ev); + } safe_quit = 1; } diff --git a/main.c b/main.c index 799b19e..8fe7da1 100644 --- a/main.c +++ b/main.c @@ -746,8 +746,9 @@ void sig_term_handler (int signum __attribute__ ((unused))) { } void do_halt (int error) { - if (daemonize) - return; + if (daemonize) { + return; + } if (!readline_disabled) { rl_free_line_state ();