]> arthur.barton.de Git - netatalk.git/blobdiff - etc/atalkd/aep.c
Warning fixes.
[netatalk.git] / etc / atalkd / aep.c
index d3fff8f5d1f89eaf06713fa42a4254f20bbac7fa..1b681548fbd455c9887fabcbe9a00f3327e2d434 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: aep.c,v 1.4 2001-06-25 20:13:45 rufustfirefly Exp $
+ * $Id: aep.c,v 1.5 2001-12-10 20:16:54 srittau Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
@@ -9,6 +9,9 @@
 #include "config.h"
 #endif /* HAVE_CONFIG_H */
 
+#include <string.h>
+#include <errno.h>
+
 #include <sys/syslog.h>
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -36,7 +39,7 @@ int aep_packet( ap, from, data, len )
     *( data + 1 ) = AEPOP_REPLY;
     if ( sendto( ap->ap_fd, data, len, 0, (struct sockaddr *)from,
            sizeof( struct sockaddr_at )) < 0 ) {
-       syslog( LOG_ERR, "aep sendto: %m" );
+       syslog( LOG_ERR, "aep sendto: %s", strerror(errno) );
        return 1;
     }