X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=fade.c;h=8affd69d57682cde8b41ec1cef4d6f51af44c52a;hp=44904ac54088124f695a63bb62a7e49867442f78;hb=be9f7c9b442f7b723427a79f85774d5fa7718425;hpb=c7592846b5002f47e32ea7ffa6d66fbb8797291f diff --git a/fade.c b/fade.c index 44904ac5..8affd69d 100644 --- a/fade.c +++ b/fade.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1998-2009 Andre Noll + * Copyright (C) 1998-2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -23,6 +23,7 @@ #include "fd.h" #include "string.h" #include "error.h" +#include "version.h" INIT_FADE_ERRLISTS; static struct fade_args_info conf; @@ -46,6 +47,7 @@ __printf_2_3 void para_log(__a_unused int ll, const char *fmt, ...) */ static int open_mixer(void) { + PARA_INFO_LOG("opening %s\n", conf.mixer_device_arg); return para_open(conf.mixer_device_arg, O_RDWR, 42); } @@ -107,7 +109,7 @@ static int open_and_set_mixer_channel(int volume) static void fixup_mixer_channel_arg(void) { - int val; + int val = SOUND_MIXER_VOLUME; /* STFU, gcc */ switch (conf.mixer_channel_arg) { case mixer_channel_arg_volume: val = SOUND_MIXER_VOLUME; break;