X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fseshigh.c;h=025b16f158a5c01f8e80873463058d4289167cff;hb=5c3d2d2ab097e4bb59ba5718a396b020a2d302c0;hp=9a1a03b263553f7c3751f84f566bd3a5978434e6;hpb=dc641263aab10156d81d8c053ecd66dce9a46b85;p=yaz-moved-to-github.git diff --git a/src/seshigh.c b/src/seshigh.c index 9a1a03b..025b16f 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.40 2004-12-21 00:31:03 adam Exp $ + * $Id: seshigh.c,v 1.42 2004-12-30 00:25:33 adam Exp $ */ /** * \file seshigh.c @@ -171,7 +171,7 @@ association *create_association(IOCHAN channel, COMSTACK link) } else { - sprintf(filename + strlen(filename), ".%d", getpid()); + sprintf(filename + strlen(filename), ".%ld", (long)getpid()); if (!(f = fopen(filename, "w"))) { yaz_log(YLOG_WARN|YLOG_ERRNO, "%s", filename); @@ -1033,7 +1033,7 @@ static void process_http_request(association *assoc, request *req) int t; const char *alive = z_HTTP_header_lookup(hreq->headers, "Keep-Alive"); - if (alive && isdigit(*alive)) + if (alive && isdigit(*(const unsigned char *) alive)) t = atoi(alive); else t = 15; @@ -1429,7 +1429,7 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb) assoc->init->implementation_name, odr_prepend(assoc->encode, "GFS", resp->implementationName)); - version = odr_strdup(assoc->encode, "$Revision: 1.40 $"); + version = odr_strdup(assoc->encode, "$Revision: 1.42 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; resp->implementationVersion = odr_prepend(assoc->encode, @@ -1927,9 +1927,9 @@ static Z_APDU *process_presentRequest(association *assoc, request *reqb, if (*resp->presentStatus == Z_PresentStatus_failure) wr_diag(wr, errcode, errstring); else if (*resp->presentStatus == Z_PresentStatus_success) - wrbuf_printf(wr," OK %d records returned ", *num); + wrbuf_printf(wr,"OK %d records returned ", *num); else - wrbuf_printf(wr," Partial (%d) OK %d records returned ", + wrbuf_printf(wr,"Partial (%d) OK %d records returned ", *resp->presentStatus, *num); yaz_log(log_request, "%s", wrbuf_buf(wr) ); wrbuf_free(wr, 1);