]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/atp/atp_close.c
Wrong path from 2-1
[netatalk.git] / libatalk / atp / atp_close.c
index 47aa9abbc2db28c988fd9a7f47599153415890cc..4d31b5f765e5b47d6af0a755116375f006ce4587 100644 (file)
@@ -1,21 +1,28 @@
 /*
+ * $Id: atp_close.c,v 1.5 2009-10-13 22:55:37 didg Exp $
+ *
  * Copyright (c) 1990,1997 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/time.h>
+#include <sys/socket.h>
+
 #include <netatalk/at.h>
 #include <atalk/netddp.h>
 #include <atalk/atp.h>
 #include "atp_internals.h"
 #ifdef EBUG
 #include <stdio.h>
-#endif EBUG
+#endif /* EBUG */
 
-int atp_close( ah )
-    ATP                ah;
+int atp_close(ATP ah)
 {
     struct atpbuf      *cq;
     int                        i;
@@ -24,7 +31,7 @@ int atp_close( ah )
     */
 #ifdef EBUG
     print_bufuse( ah, "atp_close");
-#endif EBUG
+#endif /* EBUG */
 
     while ( ah->atph_queue != NULL ) {
        cq = ah->atph_queue;
@@ -57,7 +64,7 @@ int atp_close( ah )
 
 #ifdef EBUG
     print_bufuse( ah, "atp_close end");
-#endif EBUG
+#endif /* EBUG */
 
     i = ah->atph_socket;
     atp_free_buf( (struct atpbuf *) ah );