X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fstatserv.c;h=dacdc39f7965148d407f51dcfdb2886c07e97fa3;hp=3dd5b939c2410140783b8d736f4fad3c95f1a0c1;hb=88d3bedf772316f87e1996f655ccf8d1e2589755;hpb=379504a233e3e2cc85bca1e7b6d864f1395aec7c diff --git a/src/statserv.c b/src/statserv.c index 3dd5b93..dacdc39 100644 --- a/src/statserv.c +++ b/src/statserv.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -53,6 +53,7 @@ #include #include #include +#include #ifdef USE_XTIMOSI #include #endif @@ -994,7 +995,7 @@ static void listener(IOCHAN h, int event) static void *new_session(void *vp) { - char *a; + const char *a; association *newas; IOCHAN new_chan; COMSTACK new_line = (COMSTACK) vp; @@ -1062,7 +1063,7 @@ static void inetd_connection(int what) COMSTACK line; IOCHAN chan; association *assoc; - char *addr; + const char *addr; if ((line = cs_createbysocket(0, tcpip_type, 0, what))) {