kopenafs: Tidy up headers
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 24 Mar 2011 22:17:55 +0000 (22:17 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 1 Apr 2011 12:51:17 +0000 (05:51 -0700)
Since we adopted libroken, we get a lot of header includes automatically
from roken.h. Use these, instead of including lots of things multiple
times.

Change-Id: Ie4f0f87074b9f9c5a028098ea39e548d9932e54a
Reviewed-on: http://gerrit.openafs.org/4331
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/kopenafs/kopenafs.c
src/kopenafs/test-unlog.c

index 9d987a6..a31833f 100644 (file)
  * Glue code for the kopenafs API.  Mostly just wrappers around the functions
  * included in the libsys code.
  */
+#include <afsconfig.h>
+#include <afs/param.h>
+
+#include <roken.h>
 
-#include <errno.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <signal.h>
-#include <stdlib.h>
 #ifdef AFS_AIX51_ENV
 # include <sys/cred.h>
 # ifdef HAVE_SYS_PAG_H
 #  include <sys/pag.h>
 # endif
 #endif
-#include <sys/param.h>
-#include <unistd.h>
 
-#include <afsconfig.h>
 #include <afs/afssyscalls.h>
-#include <afs/param.h>
 #include <kopenafs.h>
 
 static volatile sig_atomic_t syscall_okay = 1;
index 0cdd626..c1807ab 100644 (file)
@@ -14,6 +14,8 @@
 #include <errno.h>
 #include <stdio.h>
 
+#include "kopenafs.h"
+
 int
 main(void)
 {