]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
com_err: Tidy header includes
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 24 Mar 2011 20:50:21 +0000 (20:50 +0000)
committerJeffrey Altman <jaltman@openafs.org>
Tue, 29 Mar 2011 12:15:39 +0000 (05:15 -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: I167b0fa7f48d7dd71efb43a4f137655b38137314
Reviewed-on: http://gerrit.openafs.org/4325
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/comerr/com_err.c
src/comerr/compile_et.c
src/comerr/error_msg.c
src/comerr/et_name.c

index 65af193bd84fcdb98fe10a05813bc369df341c04..27571a55fc571c00d121592efc888f9a1c594fcc 100644 (file)
@@ -7,10 +7,9 @@
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
 #include "internal.h"
-#include <stdio.h>
-#include <stdarg.h>
 #include "error_table.h"
 #include "com_err.h"
 
index b90238a4987c998f4c74a055235c2dc1afda1dd8..666ea6d03b24882ff47a0a4d765ea31bb8ddce64 100644 (file)
 #undef MEMORYLEAK
 #include <afsconfig.h>
 #include <afs/param.h>
-#include <afs/afsutil.h>
-
 
-#include <stdio.h>
-#include <stdlib.h>
-
-#ifndef AFS_NT40_ENV
-#include <sys/file.h>
-#include <sys/param.h>
-#endif
+#include <roken.h>
 
-#include <errno.h>
-#include <string.h>
-#ifdef AFS_AIX32_ENV
-#include <signal.h>
-#endif
+#include <afs/afsutil.h>
 #include "mit-sipb-cr.h"
 #include "internal.h"
 #include "compiler.h"
index fe4874877fdacca111f6287c77e6c33c9f1c4498..e09cce3b5141299b5e768a8308b4db9e8e18d62e 100644 (file)
 
 #include <roken.h>
 
-#include "internal.h"
-#include <stdio.h>
-#include "error_table.h"
-#include "mit-sipb-cr.h"
 #ifdef HAVE_LIBINTL
 #include <libintl.h>
 #endif
 #ifdef AFS_DARWIN_ENV
 #include <CoreFoundation/CoreFoundation.h>
 #endif
+
 #include <afs/errors.h>
 #include <afs/afsutil.h>
-#include <string.h>
+
+#include "internal.h"
+#include "error_table.h"
+#include "mit-sipb-cr.h"
 #include "com_err.h"
 
 static const char copyright[] =
index 002217d825c376164d6366af33cdd2914e5366d3..fcd73f70594e4605d21d9b83196879f6a8bfb8af 100644 (file)
@@ -6,8 +6,10 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
-#include <afs/afsutil.h>
 
+#include <roken.h>
+
+#include <afs/afsutil.h>
 
 #include "error_table.h"
 #include "mit-sipb-cr.h"