]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - recv.c
introduce INIT_STDERR_LOCKING macro
[paraslash.git] / recv.c
diff --git a/recv.c b/recv.c
index cead11a345362178b99b36a159a6bea4f496df7b..35f6948c94971edf02a71a1a7be72fb4df7f7fc1 100644 (file)
--- a/recv.c
+++ b/recv.c
@@ -15,6 +15,9 @@
  *     along with this program; if not, write to the Free Software
  *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  */
  *     along with this program; if not, write to the Free Software
  *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  */
+
+/** \file recv.c the stand-alone receiver */
+
 #include "para.h"
 
 #include "list.h"
 #include "para.h"
 
 #include "list.h"
@@ -29,18 +32,8 @@ struct recv_args_info conf;
 
 INIT_RECV_ERRLISTS;
 
 
 INIT_RECV_ERRLISTS;
 
-__printf_2_3 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 void *parse_config(int argc, char *argv[], int *receiver_num)
 {
        int i;
 static void *parse_config(int argc, char *argv[], int *receiver_num)
 {
        int i;