From 9a7cdcf5ae13e63eae0259f2a620119463e64f42 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 9 Nov 2005 17:47:07 +0000 Subject: [PATCH] Avoid mixed stmt/var declare --- src/seshigh.c | 6 +++--- src/srw.c | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/seshigh.c b/src/seshigh.c index 1ff40da..a7dbefb 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.64 2005-11-08 15:08:02 adam Exp $ + * $Id: seshigh.c,v 1.65 2005-11-09 17:47:11 adam Exp $ */ /** * \file seshigh.c @@ -1476,8 +1476,8 @@ static void process_http_request(association *assoc, request *req) } else if (sr->which == Z_SRW_update_request) { - yaz_log(YLOG_DEBUG, "handling SRW UpdateRequest"); Z_SRW_PDU *res = yaz_srw_get(o, Z_SRW_update_response); + yaz_log(YLOG_DEBUG, "handling SRW UpdateRequest"); if (num_diagnostic) { res->u.update_response->diagnostics = diagnostic; @@ -1988,7 +1988,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.64 $"); + version = odr_strdup(assoc->encode, "$Revision: 1.65 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; resp->implementationVersion = odr_prepend(assoc->encode, diff --git a/src/srw.c b/src/srw.c index 759e06e..474af62 100644 --- a/src/srw.c +++ b/src/srw.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: srw.c,v 1.37 2005-11-08 15:08:02 adam Exp $ + * $Id: srw.c,v 1.38 2005-11-09 17:47:07 adam Exp $ */ /** * \file srw.c @@ -972,6 +972,7 @@ int yaz_ucp_codec(ODR o, void * vptr, Z_SRW_PDU **handler_data, { xmlNodePtr ptr = method->children; Z_SRW_updateRequest *req; + char *oper = 0; (*p)->which = Z_SRW_update_request; req = (*p)->u.update_request = (Z_SRW_updateRequest *) @@ -989,8 +990,6 @@ int yaz_ucp_codec(ODR o, void * vptr, Z_SRW_PDU **handler_data, req->extraRequestData = 0; req->stylesheet = 0; - char *oper = 0; - for (; ptr; ptr = ptr->next) { if (match_xsd_string(ptr, "version", o, -- 1.7.10.4