summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2018-07-11 16:33:45 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2020-07-14 15:52:41 +0200
commite4b3b08d8520adba696456f904b30a6e54e9b6d2 (patch)
treeaf50be2224e28f0ec6ec4b8669f3ed1d5703e75f
parent839751646098f005b7e529398183f89f9909dfdf (diff)
Delete unused code
-rw-r--r--xenodm/netaddr.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/xenodm/netaddr.c b/xenodm/netaddr.c
index 0a44d63..c274aad 100644
--- a/xenodm/netaddr.c
+++ b/xenodm/netaddr.c
@@ -123,36 +123,3 @@ int ConvertAddr (XdmcpNetaddr saddr, int *len, char **addr)
NetaddrFamily(saddr));
return retval;
}
-
-
-# ifdef DEBUG
-/*ARGSUSED*/
-void
-PrintSockAddr (struct sockaddr *a, int len)
-{
- unsigned char *t, *p;
-
- Debug ("family %d, ", a->sa_family);
- switch (a->sa_family) {
- case AF_INET:
-
- p = (unsigned char *) &((struct sockaddr_in *) a)->sin_port;
- t = (unsigned char *) &((struct sockaddr_in *) a)->sin_addr;
-
- Debug ("port %d, host %d.%d.%d.%d\n",
- (p[0] << 8) + p[1], t[0], t[1], t[2], t[3]);
- break;
- case AF_INET6:
- {
- char astr[INET6_ADDRSTRLEN] = "";
-
- inet_ntop(a->sa_family, &((struct sockaddr_in6 *) a)->sin6_addr,
- astr, sizeof(astr));
- p = (unsigned char *) &((struct sockaddr_in6 *) a)->sin6_port;
-
- Debug ("port %d, host %s\n", (p[0] << 8) + p[1], astr);
- break;
- }
- }
-}
-# endif