From b8ed27767b6287b6b6cf812c634e225d05674385 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Wed, 11 Jul 2018 19:51:13 +0000 Subject: The file descriptor parameter is not used by DefineSelf() in xenodm. Zap it. --- xenodm/auth.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/xenodm/auth.c b/xenodm/auth.c index 7f022ec..0f9528d 100644 --- a/xenodm/auth.c +++ b/xenodm/auth.c @@ -663,7 +663,7 @@ DefineLocal (FILE *file, Xauth *auth) # include static void -DefineSelf(int fd, FILE *file, Xauth *auth) +DefineSelf(FILE *file, Xauth *auth) { struct ifaddrs *ifap, *ifr; char *addr; @@ -738,16 +738,11 @@ setAuthNumber (Xauth *auth, char *name) static void writeLocalAuth (FILE *file, Xauth *auth, char *name) { - int fd; Debug ("writeLocalAuth: %s %.*s\n", name, auth->name_length, auth->name); setAuthNumber (auth, name); #ifdef TCPCONN - fd = socket (AF_INET6, SOCK_STREAM, 0); - if (fd < 0) - fd = socket (AF_INET, SOCK_STREAM, 0); - DefineSelf (fd, file, auth); - close (fd); + DefineSelf (file, auth); #endif DefineLocal (file, auth); } -- cgit v1.2.3