]> arthur.barton.de Git - netatalk.git/blobdiff - etc/atalkd/aep.c
Warning fixes.
[netatalk.git] / etc / atalkd / aep.c
index 83a532305247ebc6c0060b3e7ed419bec3eb7384..1b681548fbd455c9887fabcbe9a00f3327e2d434 100644 (file)
@@ -1,8 +1,17 @@
 /*
+ * $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.
  */
 
+#ifdef HAVE_CONFIG_H
+#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>
@@ -12,7 +21,7 @@
 
 #include "atserv.h"
 
-aep_packet( ap, from, data, len )
+int aep_packet( ap, from, data, len )
     struct atport      *ap;
     struct sockaddr_at *from;
     char               *data;
@@ -30,7 +39,7 @@ 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;
     }