]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 66db86bc5f77ece9a628f705dee2198d921e3491..e7c7724b4143e33ac7fbd7d79ba8ee1c5fd38bdf 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);