X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=fade.c;h=868ada4120b55c67fd3260ea93f6d81ba42b9f9d;hb=8d76c430e774231a6494d36babb0f63a3cabb893;hp=33f1ccbeda51ae52cc1dd6a627b545aee84b0923;hpb=40de1dd2fdbb054444d585aa70e2d50166a66e07;p=paraslash.git diff --git a/fade.c b/fade.c index 33f1ccbe..868ada41 100644 --- a/fade.c +++ b/fade.c @@ -1,32 +1,31 @@ /* - * Copyright (C) 1998-2008 Andre Noll + * Copyright (C) 1998-2009 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file fade.c A volume fader and alarm clock for linux. */ +#include #include #include - -#include "fade.cmdline.h" -#include "para.h" -#include "fd.h" - -#include +#include #include #include /* EXIT_SUCCESS */ #include #include #include #include -#include +#include + +#include "fade.cmdline.h" +#include "para.h" +#include "fd.h" #include "string.h" #include "error.h" - INIT_FADE_ERRLISTS; -struct fade_args_info conf; +static struct fade_args_info conf; __printf_2_3 void para_log(__a_unused int ll, const char *fmt, ...) { @@ -217,7 +216,7 @@ static int sweet_dreams(void) tm->tm_sec = 0; } else { t1 += 9 * 60 * 60; /* nine hours from now */ - PARA_INFO_LOG("default wake time: %lu\n", t1); + PARA_INFO_LOG("default wake time: %lu\n", (long unsigned)t1); tm = localtime(&t1); } wake_time_epoch = mktime(tm);