]> arthur.barton.de Git - netatalk.git/blobdiff - etc/papd/comment.c
replace remaining %m printf glibc extension with %s strerror(errno)
[netatalk.git] / etc / papd / comment.c
index d4122107c081bed4ed5671b2e09a9ca9493bcdda..869c028e69c6b7419487e8c0ca9b1f5c797f1fef 100644 (file)
@@ -1,17 +1,20 @@
 /*
+ * $Id: comment.c,v 1.8.10.1 2008-11-14 10:04:52 didg Exp $
+ *
  * Copyright (c) 1990,1994 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
  */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
+#endif /* HAVE_CONFIG_H */
 
-#include <sys/syslog.h>
+#include <atalk/logger.h>
 #include <sys/param.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <errno.h>
 
 #include "comment.h"
 
@@ -35,7 +38,7 @@ void compush( comment )
 
     if (( cs = (struct comstate *)malloc( sizeof( struct comstate ))) ==
            NULL ) {
-       syslog( LOG_ERR, "malloc: %m" );
+       LOG(log_error, logtype_papd, "malloc: %s", strerror(errno) );
        exit( 1 );
     }
 
@@ -57,7 +60,7 @@ int comswitch( comments, handler )
        }
     }
     if ( comment == NULL || comment->c_handler != handler ) {
-       syslog( LOG_ERR, "comswitch: can't find handler!" );
+       LOG(log_error, logtype_papd, "comswitch: can't find handler!" );
        return( -1 );
     }
     compop();