Kill dummy ucred struct
authorAndre Noll <maan@congo.fml.local>
Sun, 20 Aug 2006 16:01:59 +0000 (18:01 +0200)
committerAndre Noll <maan@congo.fml.local>
Sun, 20 Aug 2006 16:01:59 +0000 (18:01 +0200)
If unix socked credentials are availabe, this code is #ifdef'd out. If it isn't
available (eg. Mac OS) it is unused.

net.c

diff --git a/net.c b/net.c
index 66db86b..e7c7724 100644 (file)
--- a/net.c
+++ b/net.c
@@ -391,9 +391,6 @@ int create_pf_socket(const char *name, struct sockaddr_un *unix_addr, int mode)
 }
 
 #ifndef HAVE_UCRED
-       struct ucred {
-       uid_t uid, pid, gid;
-};
 ssize_t send_cred_buffer(int sock, char *buf)
 {
        return send_buffer(sock, buf);