introduce INIT_STDERR_LOCKING macro
[paraslash.git] / audioc.c
index 0f4c5c5084d8dbf31c726ae6d3e5ccf67bcb7d29..1679335d7cf737d37413a158d347d16cb2054357 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (C) 2005-2006 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-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
  *
  *     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;
 
 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)
 {
 
 static char *concat_args(const int argc, char * const *argv)
 {