]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - fade.c
fade: Use proper ldflags.
[paraslash.git] / fade.c
diff --git a/fade.c b/fade.c
index 1aced9df5ad732aa4208dcbd87105b555425303b..92aec1e76f5da25c24ca447be91e5167e61a8ed5 100644 (file)
--- a/fade.c
+++ b/fade.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1998-2011 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 1998-2012 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -288,11 +288,9 @@ static int sweet_dreams(void)
 static int snooze(void)
 {
        int ret;
-       unsigned sleep_time;
 
        if (conf.so_time_arg <= 0)
                return 1;
-       sleep_time = conf.so_time_arg;
        if (open_and_get_mixer_channel() < conf.so_vol_arg)
                ret = open_and_set_mixer_channel(conf.so_vol_arg);
        else
@@ -301,7 +299,7 @@ static int snooze(void)
                return ret;
        client_cmd("pause");
        PARA_NOTICE_LOG("%d seconds snooze time...\n", conf.snooze_time_arg);
-       sleep(sleep_time);
+       sleep(conf.snooze_time_arg);
        client_cmd("play");
        return fade(conf.si_vol_arg, conf.si_time_arg);
 }