X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fcomstack.c;h=ba1cad329fcf69bdb466c5603923642bb0b279ba;hb=b55ea70d15d3ffaa247cc30db0e6b8dcc4d6ac7c;hp=40d7d4d76f995c299025207579ae53970e5a56a8;hpb=80f8ae2b0879fb9bcc811fbbcb3a72bc8064ae7a;p=yaz-moved-to-github.git diff --git a/src/comstack.c b/src/comstack.c index 40d7d4d..ba1cad3 100644 --- a/src/comstack.c +++ b/src/comstack.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: comstack.c,v 1.8 2004-04-29 08:55:17 adam Exp $ + * $Id: comstack.c,v 1.10 2004-05-03 09:00:50 adam Exp $ */ #include @@ -121,7 +121,6 @@ COMSTACK cs_create_host(const char *type_and_host, int blocking, void **vp) { t = tcpip_type; host = type_and_host; - } cs = cs_create (t, blocking, proto); if (!cs) @@ -243,17 +242,17 @@ int cs_complete_auto(const unsigned char *buf, int len) break; } else if (i < len - 20 && - !strncasecmp(buf+i, "Transfer-Encoding:", 18)) + !strncasecmp((const char *) buf+i, "Transfer-Encoding:", 18)) { i+=18; while (buf[i] == ' ') i++; if (i < len - 8) - if (!strncasecmp(buf+i, "chunked", 7)) + if (!strncasecmp((const char *) buf+i, "chunked", 7)) chunked = 1; } else if (i < len - 17 && - !strncasecmp(buf+i, "Content-Length:", 15)) + !strncasecmp((const char *)buf+i, "Content-Length:", 15)) { i+= 15; while (buf[i] == ' ')