]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/atp/atp_open.c
Remove bdb env on exit
[netatalk.git] / libatalk / atp / atp_open.c
index 58d61a643bbd4abd40b588a5b658cd33f601134c..1690752cccf77600c6998b8f5bd64b0f059b383d 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * $Id: atp_open.c,v 1.5 2001-08-15 02:17:57 srittau Exp $
+ *
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
  * All Rights Reserved.
  *
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
+#endif /* HAVE_CONFIG_H */
 
 #include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/param.h>
+#include <sys/socket.h>
 
 #include <netatalk/at.h>
 #include <netatalk/endian.h>
@@ -40,9 +43,7 @@
 
 #include "atp_internals.h"
 
-ATP atp_open(port, saddr)
-    u_int8_t port;
-    const struct at_addr *saddr;
+ATP atp_open(u_int8_t port, const struct at_addr *saddr)
 {
     struct sockaddr_at  addr;
     int                        s;
@@ -50,9 +51,9 @@ ATP atp_open(port, saddr)
     struct timeval     tv;
     int                        pid;
 
-#ifdef EBUG
+#ifdef DEBUG
     printf( "<%d> atp_open\n", getpid());
-#endif
+#endif /* DEBUG */
 
     memset(&addr, 0, sizeof(addr));
     addr.sat_port = port;
@@ -78,7 +79,7 @@ ATP atp_open(port, saddr)
 
 #ifdef EBUG
 srandom( tv.tv_sec );
-#endif
+#endif /* EBUG */
 
     return atp;
 }