usd: Tidy header includes
authorSimon Wilkinson <sxw@your-file-system.com>
Sun, 27 Mar 2011 21:59:26 +0000 (22:59 +0100)
committerJeffrey Altman <jaltman@openafs.org>
Sun, 3 Apr 2011 22:33:18 +0000 (15:33 -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: I593ca273e11e4dd7bb0887e708189cc7a1181879
Reviewed-on: http://gerrit.openafs.org/4413
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>

src/usd/usd_file.c
src/usd/usd_nt.c

index 96c646e..8b71e30 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
-#include <errno.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <unistd.h>
-#include <sys/stat.h>
+#include <roken.h>
+
 #if defined(AFS_AIX_ENV)
 #include <sys/tape.h>
 #include <sys/statfs.h>
 #endif
 #endif /* AFS_AIX_ENV */
 
-#include <string.h>
-#include <stdlib.h>
-
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
 #include <afs/afs_assert.h>
 
 #include "usd.h"
index df5fff2..506eda8 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
 #include <windows.h>
-#include <stdio.h>
-#include <io.h>
 #include <winioctl.h>
 #include <sys/stat.h>
 #include <crtdbg.h>