[Xcb] [PATCH 2/2] Remove dead code

Julien Danjou julien at danjou.info
Thu Sep 2 02:29:23 PDT 2010


Signed-off-by: Julien Danjou <julien at danjou.info>
---
 src/xcb_auth.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/xcb_auth.c b/src/xcb_auth.c
index a0fe4e5..454e6ed 100644
--- a/src/xcb_auth.c
+++ b/src/xcb_auth.c
@@ -325,12 +325,6 @@ int _xcb_get_auth_info(int fd, xcb_auth_info_t *info, int display)
     if (!info->namelen)
         goto no_auth;   /* out of memory */
 
-    if (!sockname && (sockname = get_peer_sock_name(getsockname, fd)) == NULL)
-    {
-        free(info->name);
-        goto no_auth;   /* can only authenticate sockets */
-    }
-
     ret = compute_auth(info, authptr, sockname);
     if(!ret)
     {
-- 
1.7.1



More information about the Xcb mailing list