X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=audioc.c;h=216afa2f11aeebc132d23ad2a96664daf9e384cd;hb=974c42fd818babdfd2590df59b2a74a80398e826;hp=0f4c5c5084d8dbf31c726ae6d3e5ccf67bcb7d29;hpb=786010c598f79d20280e6ea9ea458cad4a7e9af7;p=paraslash.git diff --git a/audioc.c b/audioc.c index 0f4c5c50..216afa2f 100644 --- a/audioc.c +++ b/audioc.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2006 Andre Noll + * Copyright (C) 2005-2007 Andre Noll * * 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 @@ -30,21 +30,7 @@ INIT_AUDIOC_ERRLISTS; struct audioc_args_info conf; char *tmpfifo; - -/* - * client log function - */ -void para_log(int ll, const char* fmt,...) -{ - va_list argp; - - /* ignore log message if loglevel is not high enough */ - if (ll < conf.loglevel_arg) - return; - va_start(argp, fmt); - vfprintf(stderr, fmt, argp); - va_end(argp); -} +INIT_STDERR_LOGGING(conf.loglevel_arg); static char *concat_args(const int argc, char * const *argv) { @@ -83,6 +69,7 @@ int main(int argc, char *argv[]) if (audioc_cmdline_parser(argc, argv, &conf)) goto out; + HANDLE_VERSION_FLAG("audioc", conf); cf = configfile_exists(); if (cf) { if (audioc_cmdline_parser_configfile(cf, &conf, 0, 0, 0)) {