Only define saved_addr if HAVE_UTEMPTER

Otherwise the variable is unused, causing a compiler warning
This commit is contained in:
Keegan McAllister
2012-03-14 03:12:30 -04:00
parent 9e18ecb83e
commit 2d58630d0d
+1 -1
View File
@@ -279,10 +279,10 @@ void serve( int host_fd, Terminal::Complete &terminal, ServerConnection &network
#ifdef HAVE_UTEMPTER #ifdef HAVE_UTEMPTER
bool connected_utmp = false; bool connected_utmp = false;
#endif
struct in_addr saved_addr; struct in_addr saved_addr;
saved_addr.s_addr = 0; saved_addr.s_addr = 0;
#endif
while ( 1 ) { while ( 1 ) {
try { try {