From eea404d31ae1550d4081a62623cd5289cb8ef29d Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Wed, 11 Apr 2007 11:08:24 +0000 Subject: [PATCH] removed unused code --- src/http.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/http.c b/src/http.c index 5248ede..de5657f 100644 --- a/src/http.c +++ b/src/http.c @@ -1,4 +1,4 @@ -/* $Id: http.c,v 1.23 2007-04-10 08:48:56 adam Exp $ +/* $Id: http.c,v 1.24 2007-04-11 11:08:24 marc Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -1025,26 +1025,12 @@ void http_init(const char *addr) } else { - //size_t len = 128; - //char h[len]; port = atoi(addr); myaddr.sin_addr.s_addr = INADDR_ANY; - -#if 0 - // get hostname from system - after deciding to bind to any - // IP address this box might have. - if (0 == gethostname(h, len)){ - h[len - 1] = '\0'; - global_parameters.server->host = nmem_strdup(nmem, h); - } else - yaz_log(YLOG_WARN, "Could not get host name"); -#endif } - myaddr.sin_port = htons(port); - if (!(p = getprotobyname("tcp"))) { abort(); } -- 1.7.10.4