uss: Tidy up header includes
[openafs.git] / src / uss / uss_procs.c
index 9d6ebf4..a5be915 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
+
+#include <afs/kautils.h> /*MAXKTCREALMLEN*/
 
 #include "uss_procs.h"         /*Module interface */
 #include "uss_common.h"                /*Common defs & operations */
 #include "uss_acl.h"           /*ACL-related operations */
-#include <errno.h>             /*Unix error codes */
-#include <pwd.h>               /*Password info */
-#include <sys/stat.h>          /*Stat defs */
-#include <dirent.h>            /*Directory package */
-#include <sys/file.h>          /*O_EXCL, O_CREAT, etc */
-#ifdef AFS_SUN5_ENV
-#include <fcntl.h>
-#endif
-
-#include <string.h>
-#include <stdarg.h>
-    
-#include <afs/kautils.h> /*MAXKTCREALMLEN*/
+
 #undef USS_PROCS_DB
 #undef USS_PROCS_DB_INSTANCE
 #undef USS_PROCS_DB_BUILDDIR
@@ -277,7 +268,7 @@ uss_procs_CpFile(char *a_path, char *a_mode, char *a_owner, char *a_proto)
  *------------------------------------------------------------------------*/
 
 afs_int32
-uss_procs_EchoToFile(char *a_path, char *a_mode, char *a_owner, 
+uss_procs_EchoToFile(char *a_path, char *a_mode, char *a_owner,
                     char *a_content)
 {                              /*uss_procs_EchoToFile */
 
@@ -493,7 +484,7 @@ uss_procs_GetOwner(char *a_ownerStr)
  * static Copy
  *
  * Description:
- *      Copies the "from" file to the "to" file and sets the mode. 
+ *      Copies the "from" file to the "to" file and sets the mode.
  *
  * Arguments:
  *     a_from : File to copy from.
@@ -691,7 +682,7 @@ uss_procs_PickADir(char *path, char *cp)
        cd[1] = '\0';
     }
 
-    /* 
+    /*
      * We now have the current dir (cd).  Search all of the given
      * subdirs (by G in template), count the number of entries in
      * each and pick the minimum.
@@ -855,7 +846,7 @@ void
 uss_procs_PrintErr(int a_lineNum, char *a_fmt, ... )
 {                              /*uss_procs_PrintErr */
     va_list ap;
-    
+
     va_start(ap, a_fmt);
     uss_syntax_err++;
     fprintf(stderr, "%s: Template file, line %d: ", uss_whoami, a_lineNum);