/*
+ * $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;
*/
#ifdef EBUG
print_bufuse( ah, "atp_close");
-#endif EBUG
+#endif /* EBUG */
while ( ah->atph_queue != NULL ) {
cq = ah->atph_queue;
#ifdef EBUG
print_bufuse( ah, "atp_close end");
-#endif EBUG
+#endif /* EBUG */
i = ah->atph_socket;
atp_free_buf( (struct atpbuf *) ah );