From a4e2c1cc7e6d98a4b826e2826bc26b771138ab1a Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Thu, 24 Mar 2011 22:17:55 +0000 Subject: [PATCH] kopenafs: Tidy up headers 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 Reviewed-by: Derrick Brashear --- src/kopenafs/kopenafs.c | 13 ++++--------- src/kopenafs/test-unlog.c | 2 ++ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/kopenafs/kopenafs.c b/src/kopenafs/kopenafs.c index 9d987a6..a31833f 100644 --- a/src/kopenafs/kopenafs.c +++ b/src/kopenafs/kopenafs.c @@ -11,24 +11,19 @@ * Glue code for the kopenafs API. Mostly just wrappers around the functions * included in the libsys code. */ +#include +#include + +#include -#include -#include -#include -#include -#include #ifdef AFS_AIX51_ENV # include # ifdef HAVE_SYS_PAG_H # include # endif #endif -#include -#include -#include #include -#include #include static volatile sig_atomic_t syscall_okay = 1; diff --git a/src/kopenafs/test-unlog.c b/src/kopenafs/test-unlog.c index 0cdd626..c1807ab 100644 --- a/src/kopenafs/test-unlog.c +++ b/src/kopenafs/test-unlog.c @@ -14,6 +14,8 @@ #include #include +#include "kopenafs.h" + int main(void) { -- 1.9.4