X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=fade.c;h=33f1ccbeda51ae52cc1dd6a627b545aee84b0923;hp=6b87680131fa99608b5e258533c3a7fe8545391f;hb=eb72a9a014e6eccaad9d1d00da141ba5650ba595;hpb=93ea9f34dcb35755568e6c94f9b9445fd4d1984a diff --git a/fade.c b/fade.c index 6b876801..33f1ccbe 100644 --- a/fade.c +++ b/fade.c @@ -28,7 +28,7 @@ INIT_FADE_ERRLISTS; struct fade_args_info conf; -void para_log(__a_unused int ll, const char *fmt,...) +__printf_2_3 void para_log(__a_unused int ll, const char *fmt, ...) { va_list argp; time_t t1; @@ -238,7 +238,10 @@ static int sweet_dreams(void) if (ret < 0) return ret; } - change_afs_mode_and_play(sleep_mode); + if (conf.sleep_mode_given) + change_afs_mode_and_play(sleep_mode); + else + client_cmd("stop"); if (!wf) return 1; for (;;) {