diff options
author | Dr. Tilmann Bubeck <t.bubeck@reinform.de> | 2013-09-24 11:21:52 +0200 |
---|---|---|
committer | Dr. Tilmann Bubeck <t.bubeck@reinform.de> | 2013-09-24 11:21:52 +0200 |
commit | 289ca779f73840cb5c9d69b919413079d1be3fc2 (patch) | |
tree | c1eb04528d391276cc7e8aa8d5d4cb3ee0f3f2fd /gethost.c | |
parent | 2440a254797cc3655c8743a9232f30a693f6f947 (diff) | |
download | xorg-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |