Commit ca694272 authored by Vysheng's avatar Vysheng

fixed indents

parent 92f9e9f1
...@@ -934,16 +934,16 @@ void do_status_offline (int arg_num, struct arg args[], struct in_ev *ev) { ...@@ -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;
} }
......
...@@ -746,8 +746,9 @@ void sig_term_handler (int signum __attribute__ ((unused))) { ...@@ -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 ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment