]> code.citadel.org Git - citadel.git/blobdiff - webcit/locate_host.c
Remove $Id$ tags from most of webcit
[citadel.git] / webcit / locate_host.c
index 488a472a92dab7efebbf11e7bdb15a7ff1ceedce..8f1a769555867c39899f785f6d23c80dfa8689b5 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * Given a socket, supply the name of the host at the other end.
  *
  * Copyright (c) 1996-2010 by the citadel.org team
@@ -30,14 +28,8 @@ void locate_host(StrBuf *tbuf, int client_socket)
        struct sockaddr_in6 clientaddr;
        unsigned int addrlen = sizeof(clientaddr);
        char clienthost[NI_MAXHOST];
-       char clientservice[NI_MAXSERV];
 
        getpeername(client_socket, (struct sockaddr *)&clientaddr, &addrlen);
-       getnameinfo((struct sockaddr *)&clientaddr, addrlen,
-               clienthost, sizeof(clienthost),
-               clientservice, sizeof(clientservice),
-               0
-       );
-
+       getnameinfo((struct sockaddr *)&clientaddr, addrlen, clienthost, sizeof(clienthost), NULL, 0, 0);
         StrBufAppendBufPlain(tbuf, clienthost, -1, 0);
 }