diff --git a/src/uss/uss.c b/src/uss/uss.c index b1bfee0fa1..b1463a861f 100644 --- a/src/uss/uss.c +++ b/src/uss/uss.c @@ -14,16 +14,17 @@ /* * --------------------- Required definitions --------------------- */ -#include #include #include +#include -#ifdef AFS_AIX32_ENV -#include -#endif - -#include +#include /*Command line parsing */ +#include /*Cell config defs */ +#include /*MAXKTCREALMLEN & MAXKTCNAMELEN */ +#include +#include +#include #include "uss_common.h" /*Common uss definitions, globals */ #include "uss_procs.h" /*Main uss operations */ @@ -32,12 +33,6 @@ #include "uss_ptserver.h" #include "uss_vol.h" #include "uss_acl.h" -#include /*Command line parsing */ -#include /*Cell config defs */ -#include /*MAXKTCREALMLEN & MAXKTCNAMELEN */ -#include -#include -#include extern int yylex(void); extern int yyparse (void); diff --git a/src/uss/uss_acl.c b/src/uss/uss_acl.c index 9ed9aebe4d..f14561fe01 100644 --- a/src/uss/uss_acl.c +++ b/src/uss/uss_acl.c @@ -18,17 +18,7 @@ #include #include - -#include "uss_acl.h" -#include "uss_common.h" -#include "uss_fs.h" -#include -#include -#include -#include -#include - -#include +#include #undef VIRTUE #undef VICE @@ -36,6 +26,11 @@ #include #include #include +#include + +#include "uss_acl.h" +#include "uss_common.h" +#include "uss_fs.h" #define MAXNAME 100 diff --git a/src/uss/uss_common.c b/src/uss/uss_common.c index afaab191d4..d547b47b70 100644 --- a/src/uss/uss_common.c +++ b/src/uss/uss_common.c @@ -18,12 +18,11 @@ #include #include +#include -#include "uss_common.h" /*Interface definitions */ #include /*MAXKTCREALMLEN & MAXKTCNAMELEN */ -#include - +#include "uss_common.h" /*Interface definitions */ /* * ---------------------- Exported variables ---------------------- diff --git a/src/uss/uss_fs.c b/src/uss/uss_fs.c index 2030a928c8..77cdb2bf14 100644 --- a/src/uss/uss_fs.c +++ b/src/uss/uss_fs.c @@ -18,24 +18,18 @@ #include #include +#include -#include "uss_fs.h" /*Interface to this module */ -#include -#include -#include #ifdef AFS_SUN5_ENV #include #endif -#include - -#include -#include #include #include #include -#include "uss_common.h" +#include "uss_common.h" +#include "uss_fs.h" /*Interface to this module */ /* * ---------------------- Private definitions --------------------- diff --git a/src/uss/uss_kauth.c b/src/uss/uss_kauth.c index c077c9eda1..da956bd947 100644 --- a/src/uss/uss_kauth.c +++ b/src/uss/uss_kauth.c @@ -18,18 +18,16 @@ #include #include - -#include "uss_kauth.h" /*Module interface */ -#include "uss_common.h" /*Common defs & operations */ -#include -#include - -#include +#include #include #include /*MAXKTCREALMLEN*/ #include /* pack_long */ #include + +#include "uss_kauth.h" /*Module interface */ +#include "uss_common.h" /*Common defs & operations */ + #define uss_kauth_MAX_SIZE 2048 #undef USS_KAUTH_DB /* diff --git a/src/uss/uss_procs.c b/src/uss/uss_procs.c index 225fee9466..a5be915c03 100644 --- a/src/uss/uss_procs.c +++ b/src/uss/uss_procs.c @@ -18,23 +18,14 @@ #include #include +#include + +#include /*MAXKTCREALMLEN*/ #include "uss_procs.h" /*Module interface */ #include "uss_common.h" /*Common defs & operations */ #include "uss_acl.h" /*ACL-related operations */ -#include /*Unix error codes */ -#include /*Password info */ -#include /*Stat defs */ -#include /*Directory package */ -#include /*O_EXCL, O_CREAT, etc */ -#ifdef AFS_SUN5_ENV -#include -#endif -#include -#include - -#include /*MAXKTCREALMLEN*/ #undef USS_PROCS_DB #undef USS_PROCS_DB_INSTANCE #undef USS_PROCS_DB_BUILDDIR diff --git a/src/uss/uss_ptserver.c b/src/uss/uss_ptserver.c index 31b0d3dc51..68a4932242 100644 --- a/src/uss/uss_ptserver.c +++ b/src/uss/uss_ptserver.c @@ -18,13 +18,14 @@ #include #include +#include -#include "uss_ptserver.h" /*Module interface */ #include /*Protection Server client interface */ #include /*Protection Server error codes */ #include #include /*Error code xlation */ +#include "uss_ptserver.h" /*Module interface */ #undef USS_PTSERVER_DB diff --git a/src/uss/uss_vol.c b/src/uss/uss_vol.c index 3090c7c310..3a5f3f73ce 100644 --- a/src/uss/uss_vol.c +++ b/src/uss/uss_vol.c @@ -18,18 +18,7 @@ #include #include - -#include "uss_vol.h" /*Interface to this module */ -#include "uss_common.h" /*Common definitions */ -#include "uss_procs.h" /*Defs from procs module */ -#include "uss_fs.h" /*CacheManager ops */ -#include "uss_acl.h" -#include -#include -#include -#include - -#include +#include #include #include @@ -44,6 +33,12 @@ #include #include +#include "uss_vol.h" /*Interface to this module */ +#include "uss_common.h" /*Common definitions */ +#include "uss_procs.h" /*Defs from procs module */ +#include "uss_fs.h" /*CacheManager ops */ +#include "uss_acl.h" + extern int line; /*