/*
* Copyright (C) 1998-2007 Andre Noll <maan@systemlinux.org>
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Licensed under the GPL v2. For licencing details see COPYING.
*/
/** \file fade.c a volume fader and alarm clock */
+#include <sys/types.h>
+#include <dirent.h>
+
#include "fade.cmdline.h"
#include "para.h"
#include "fd.h"
conf.config_file_arg);
exit(EXIT_FAILURE);
}
- if (ret)
- fade_cmdline_parser_configfile(conf.config_file_arg,
- &conf, 0, 0, 0);
+ if (ret) {
+ struct fade_cmdline_parser_params params = {
+ .override = 0,
+ .initialize = 0,
+ .check_required = 0,
+ .check_ambiguity = 0
+ };
+ fade_cmdline_parser_config_file(conf.config_file_arg,
+ &conf, ¶ms);
+ }
ret = open_mixer();
if (ret < 0) {
PARA_EMERG_LOG("can not open mixer device %s.",