X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftcpip.c;h=0e31fc6274becb128c2b010b1c5e3fd8b5427bfb;hb=13473bcae713a0df158fd9620fbeba13663459ca;hp=2ef9dc2c054d047803e39fb6c48d22cec5b4b481;hpb=377e50914cd78d52e77032a3eaf8972f23b4e7b9;p=yaz-moved-to-github.git diff --git a/src/tcpip.c b/src/tcpip.c index 2ef9dc2..0e31fc6 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: tcpip.c,v 1.36 2007-10-09 06:00:56 adam Exp $ + * $Id: tcpip.c,v 1.38 2007-11-30 11:44:47 adam Exp $ */ /** * \file tcpip.c @@ -46,9 +46,6 @@ #if HAVE_SYS_SOCKET_H #include #endif -#if HAVE_SYS_SELECT_H -#include -#endif #if HAVE_SYS_WAIT_H #include #endif @@ -227,7 +224,7 @@ COMSTACK yaz_tcpip_create(int s, int flags, int protocol, if (connect_host) { tcpip_state *sp = (tcpip_state *) p->cprivate; - sp->connect_request_buf = xmalloc(strlen(connect_host) + 30); + sp->connect_request_buf = (char *) xmalloc(strlen(connect_host) + 30); sprintf(sp->connect_request_buf, "CONNECT %s HTTP/1.0\r\n\r\n", connect_host); sp->connect_request_len = strlen(sp->connect_request_buf);