]> 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 5038d7a21f66b535e7afb17c563e5135ff50cc48..869c028e69c6b7419487e8c0ca9b1f5c797f1fef 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: comment.c,v 1.7 2002-01-04 04:45:47 sibaz Exp $
+ * $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.
@@ -14,6 +14,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <errno.h>
 
 #include "comment.h"
 
@@ -37,7 +38,7 @@ void compush( comment )
 
     if (( cs = (struct comstate *)malloc( sizeof( struct comstate ))) ==
            NULL ) {
-       LOG(log_error, logtype_default, "malloc: %m" );
+       LOG(log_error, logtype_papd, "malloc: %s", strerror(errno) );
        exit( 1 );
     }
 
@@ -59,7 +60,7 @@ int comswitch( comments, handler )
        }
     }
     if ( comment == NULL || comment->c_handler != handler ) {
-       LOG(log_error, logtype_default, "comswitch: can't find handler!" );
+       LOG(log_error, logtype_papd, "comswitch: can't find handler!" );
        return( -1 );
     }
     compop();