]> arthur.barton.de Git - netatalk.git/blobdiff - etc/atalkd/aep.c
sys/syslog.h -> syslog.h
[netatalk.git] / etc / atalkd / aep.c
index 5e5726dc5315d4d2f9b156951c6e40ada04c4974..d8d41af100f37e5a6562bc2e6ee06a2feb5e951d 100644 (file)
@@ -1,13 +1,18 @@
 /*
+ * $Id: aep.c,v 1.4.2.2 2002-03-12 15:31:12 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
+#endif /* HAVE_CONFIG_H */
+
+#include <string.h>
+#include <errno.h>
+#include <syslog.h>
 
-#include <sys/syslog.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netatalk/at.h>
@@ -16,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;
@@ -34,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;
     }