]> arthur.barton.de Git - netatalk.git/commitdiff
Trunk-BP: includes cleanup.
authorsrittau <srittau>
Fri, 8 Feb 2002 00:02:11 +0000 (00:02 +0000)
committersrittau <srittau>
Fri, 8 Feb 2002 00:02:11 +0000 (00:02 +0000)
libatalk/asp/asp_getsess.c
libatalk/nbp/nbp_lkup.c
libatalk/nbp/nbp_rgstr.c
libatalk/nbp/nbp_unrgstr.c
libatalk/nbp/nbp_util.c

index 4c7765d56c6518cb882aad4b71babe95f86b2ab3..fd303f37030d52fad02c8dc7dbf711d390acaf83 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: asp_getsess.c,v 1.4 2001-09-06 19:04:40 rufustfirefly Exp $
+ * $Id: asp_getsess.c,v 1.4.2.1 2002-02-08 00:02:11 srittau Exp $
  *
  * Copyright (c) 1990,1996 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <errno.h>
+#include <signal.h>
+#include <syslog.h>
+
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif /* HAVE_UNISTD_H */
 
-#include <syslog.h>
-#include <errno.h>
-#include <sys/signal.h>
+#include <sys/types.h>
 #include <sys/time.h>
 #include <sys/uio.h>
-
-/* POSIX.1 sys/wait.h check */
-#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/param.h>
 #ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif /* HAVE_SYS_WAIT_H */
-#ifndef WEXITSTATUS
-#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
-#endif /* ! WEXITSTATUS */
-#ifndef WIFEXITED
-#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
-#endif /* ! WIFEXITED */
 
-#include <sys/socket.h>
-#include <sys/param.h>
 #include <netatalk/at.h>
 #include <atalk/compat.h>
 #include <atalk/atp.h>
 #include <atalk/asp.h>
 
 #include <atalk/server_child.h>
+
 #include "asp_child.h"
 
+#ifndef WEXITSTATUS
+#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
+#endif /* ! WEXITSTATUS */
+#ifndef WIFEXITED
+#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
+#endif /* ! WIFEXITED */
+
 static ASP server_asp;
 static struct server_child *children = NULL;
 static struct asp_child    **asp_ac = NULL;
index 9a3212747941675bb6b2ef2b6b9469ee876f789d..6db07367156169402ac67846e18af1c461016548 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: nbp_lkup.c,v 1.3 2001-06-29 14:14:46 rufustfirefly Exp $
+ * $Id: nbp_lkup.c,v 1.3.2.1 2002-02-08 00:04:49 srittau Exp $
  *
  * Copyright (c) 1990,1997 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
 #endif /* HAVE_CONFIG_H */
 
 #include <string.h>
+#include <errno.h>
+#include <signal.h>
+
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/socket.h>
-#include <sys/signal.h>
 #include <sys/time.h>
+
 #include <netatalk/endian.h>
 #include <netatalk/at.h>
 #include <netatalk/ddp.h>
@@ -26,7 +29,6 @@
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif /* HAVE_NETDB_H */
-#include <errno.h>
 
 #include  "nbp_conf.h"
 
index 5fa024925491a138431eb7a579f6535502f4b3af..098a3eb69853245fd335e57396560aae6a0b7605 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: nbp_rgstr.c,v 1.3 2001-06-29 14:14:46 rufustfirefly Exp $
+ * $Id: nbp_rgstr.c,v 1.3.2.1 2002-02-08 00:04:49 srittau Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
 #endif /* HAVE_CONFIG_H */
 
 #include <string.h>
+#include <errno.h>
+#include <signal.h>
+
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/socket.h>
-#include <sys/signal.h>
 #include <sys/time.h>
-#include <errno.h>
 
 #include <netatalk/at.h>
 #include <netatalk/endian.h>
index f7b0ccff95b5a1ce5f89f69b7769d1e24bcc2ef5..35fb80f94c7189a1bc1e71bc20467661131d997f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: nbp_unrgstr.c,v 1.3 2001-06-29 14:14:46 rufustfirefly Exp $
+ * $Id: nbp_unrgstr.c,v 1.3.2.1 2002-02-08 00:04:49 srittau Exp $
  *
  * Copyright (c) 1990,1997 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
 #endif /* HAVE_CONFIG_H */
 
 #include <string.h>
+#include <errno.h>
+#include <signal.h>
+
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/socket.h>
-#include <sys/signal.h>
 #include <sys/time.h>
-#include <errno.h>
+
 #include <netatalk/endian.h>
 #include <netatalk/at.h>
 #include <atalk/nbp.h>
index 6ff8c41a544779a8018864561c4d2434e38d7faa..42280d0fa6d41dac2c8c0099bfa169efa012c0d5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: nbp_util.c,v 1.3 2001-06-29 14:14:46 rufustfirefly Exp $
+ * $Id: nbp_util.c,v 1.3.2.1 2002-02-08 00:04:49 srittau Exp $
  *
  * Copyright (c) 1990,1997 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
 #endif /* HAVE_CONFIG_H */
 
 #include <string.h>
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif /* HAVE_NETDB_H */
+#include <signal.h>
+
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/socket.h>
-#include <sys/signal.h>
 #include <sys/time.h>
 
 #include <netatalk/endian.h>
 #include <atalk/ddp.h>
 #include <atalk/util.h>
 
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#endif /* HAVE_NETDB_H */
+
 #include  "nbp_conf.h"
 
 char           nbp_send[ 1024 ];