From: Simon Wilkinson Date: Thu, 24 Mar 2011 22:17:55 +0000 (+0000) Subject: kopenafs: Tidy up headers X-Git-Tag: upstream/1.8.0_pre1^2~3946 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a4e2c1cc7e6d98a4b826e2826bc26b771138ab1a;p=packages%2Fo%2Fopenafs.git 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 --- diff --git a/src/kopenafs/kopenafs.c b/src/kopenafs/kopenafs.c index 9d987a6f4..a31833f32 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 0cdd62697..c1807ab13 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) {