fixed indents

This commit is contained in:
Vysheng 2015-01-12 21:04:51 +03:00
parent 92f9e9f166
commit ca6942724a
2 changed files with 9 additions and 8 deletions

View File

@ -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;
}

5
main.c
View File

@ -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 ();