summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2018-07-11 19:51:13 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2020-07-14 15:52:42 +0200
commitb8ed27767b6287b6b6cf812c634e225d05674385 (patch)
tree030aaac2e016df7298bf91416b184584cda2a7cb
parent137819faff4a14458760167ab1c8078998608bae (diff)
The file descriptor parameter is not used by DefineSelf() in xenodm. Zap it.
-rw-r--r--xenodm/auth.c9
1 files 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 <ifaddrs.h>
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);
}