libacl: Tidy header includes
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 24 Mar 2011 22:32:39 +0000 (22:32 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 1 Apr 2011 12:51:32 +0000 (05:51 -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: I67bb92abc985d1510d8b8a108f9b9e3a62525fd5
Reviewed-on: http://gerrit.openafs.org/4332
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/libacl/aclprocs.c
src/libacl/netprocs.c
src/libacl/test/acltest.c

index ebfdfc3..e11cc0a 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#endif
-#include <string.h>
 #include <rx/xdr.h>
 #include <rx/rx.h>
 #include <afs/ptclient.h>
 #include <afs/ptuser.h>
+
 #include "acl.h"
 
 #ifdef AFS_PTHREAD_ENV
index 5183053..f41ad55 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#endif
 #include <rx/xdr.h>
 #include <rx/rx.h>
 #include <afs/ptclient.h>
+
 #include "acl.h"
 
 int
index e772562..ffd4f6d 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#endif
-#include <stdio.h>
 #include <rx/xdr.h>
 #include <rx/rx.h>
 #include <ptclient.h>
+
 #include "acl.h"
 #include "prs_fs.h"
 
-
 struct acl_accessList *aclstore[20];
 char *externalstore[20];