summaryrefslogtreecommitdiff
path: root/gethost.c
diff options
context:
space:
mode:
authorDr. Tilmann Bubeck <t.bubeck@reinform.de>2013-09-24 11:21:52 +0200
committerDr. Tilmann Bubeck <t.bubeck@reinform.de>2013-09-24 11:21:52 +0200
commit289ca779f73840cb5c9d69b919413079d1be3fc2 (patch)
treec1eb04528d391276cc7e8aa8d5d4cb3ee0f3f2fd /gethost.c
parent2440a254797cc3655c8743a9232f30a693f6f947 (diff)
downloadxorg-app-xauth-289ca779f73840cb5c9d69b919413079d1be3fc2.tar.gz
Fix various compiler warnings raised by modern gcc (4.8.1).
Diffstat (limited to 'gethost.c')
-rw-r--r--gethost.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gethost.c b/gethost.c
index 10f6078..8f77c80 100644
--- a/gethost.c
+++ b/gethost.c
@@ -65,10 +65,13 @@ in this Software without prior written authorization from The Open Group.
const char *
get_hostname (Xauth *auth)
{
+#ifdef TCPCONN
static struct hostent *hp;
int af;
hp = NULL;
+#endif
+
if (auth->address_length == 0)
return "Illegal Address";
#ifdef TCPCONN