summaryrefslogtreecommitdiff
path: root/src/libstddjb/getpeereid.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-13 22:43:45 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-13 22:43:45 +0000
commit33dfbbeaec4a49e110f51f5d088015f1a8fb9075 (patch)
tree7f2e2359d05b63b1b0b59b61ae3fc154050fc486 /src/libstddjb/getpeereid.c
parente450f6efc39e55e32264d2daded6c757af0f7527 (diff)
downloadskalibs-33dfbbeaec4a49e110f51f5d088015f1a8fb9075.tar.xz
More superflous headers cleanup and tiny fixes
Diffstat (limited to 'src/libstddjb/getpeereid.c')
-rw-r--r--src/libstddjb/getpeereid.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstddjb/getpeereid.c b/src/libstddjb/getpeereid.c
index 581aac1..0d36abb 100644
--- a/src/libstddjb/getpeereid.c
+++ b/src/libstddjb/getpeereid.c
@@ -11,7 +11,6 @@
/* implementation with SO_PEERCRED */
#include <skalibs/nonposix.h>
-#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <skalibs/getpeereid.h>
@@ -34,8 +33,8 @@ int getpeereid (int s, uid_t *u, gid_t *g)
/* implementation with getpeerucred() */
#include <skalibs/nonposix.h>
-#include <sys/types.h>
#include <ucred.h>
+#include <skalibs/getpeereid.h>
int getpeereid (int s, uid_t *u, gid_t *g)
{
@@ -51,7 +50,6 @@ int getpeereid (int s, uid_t *u, gid_t *g)
/* can't find a real implementation, make a stub */
-#include <sys/types.h>
#include <errno.h>
#include <skalibs/getpeereid.h>