]> 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 e8bb270e67be129dfe0e021615627b0a1a26ddf5..869c028e69c6b7419487e8c0ca9b1f5c797f1fef 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: comment.c,v 1.8 2002-09-29 23:29:13 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_papd, "malloc: %m" );
+       LOG(log_error, logtype_papd, "malloc: %s", strerror(errno) );
        exit( 1 );
     }