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) { void do_quit (int arg_num, struct arg args[], struct in_ev *ev) {
if (daemonize) if (daemonize) {
event_incoming (ev->bev, BEV_EVENT_EOF, ev); event_incoming (ev->bev, BEV_EVENT_EOF, ev);
//bufferevent_free(ev->bev); }
do_halt (0); do_halt (0);
} }
void do_safe_quit (int arg_num, struct arg args[], struct in_ev *ev) { void do_safe_quit (int arg_num, struct arg args[], struct in_ev *ev) {
if (daemonize) if (daemonize) {
event_incoming (ev->bev, BEV_EVENT_EOF, ev); event_incoming (ev->bev, BEV_EVENT_EOF, ev);
//bufferevent_free(ev->bev); }
safe_quit = 1; safe_quit = 1;
} }

3
main.c
View File

@ -746,8 +746,9 @@ void sig_term_handler (int signum __attribute__ ((unused))) {
} }
void do_halt (int error) { void do_halt (int error) {
if (daemonize) if (daemonize) {
return; return;
}
if (!readline_disabled) { if (!readline_disabled) {
rl_free_line_state (); rl_free_line_state ();