From a4916ca87f9921a945ef68479f33c2bfe6fa6897 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 16 Nov 2004 22:10:29 +0000 Subject: [PATCH] Avoid new ANSI inline declaration --- src/logrpn.c | 4 ++-- src/seshigh.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/logrpn.c b/src/logrpn.c index d2e2b34..7983d72 100644 --- a/src/logrpn.c +++ b/src/logrpn.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2004, Index Data * All rights reserved. * - * $Id: logrpn.c,v 1.4 2004-11-16 17:08:11 heikki Exp $ + * $Id: logrpn.c,v 1.5 2004-11-16 22:10:29 adam Exp $ */ /** @@ -492,9 +492,9 @@ void log_rpn_query (Z_RPNQuery *rpn) void log_scan_term_level (int loglevel, Z_AttributesPlusTerm *zapt, oid_value ast) { + int depth = 0; if (!loglevel) return; - int depth = 0; if (zapt->term->which == Z_Term_general) { yaz_log (loglevel, "%*.0s term '%.*s' (general)", depth, "", diff --git a/src/seshigh.c b/src/seshigh.c index c35787c..4f423b5 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.34 2004-11-16 17:08:11 heikki Exp $ + * $Id: seshigh.c,v 1.35 2004-11-16 22:14:44 adam Exp $ */ /** * \file seshigh.c @@ -1420,7 +1420,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.34 $"); + version = odr_strdup(assoc->encode, "$Revision: 1.35 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; resp->implementationVersion = odr_prepend(assoc->encode, @@ -1599,7 +1599,6 @@ static Z_Records *pack_records(association *a, char *setname, int start, int *oid, int *errcode) { int recno, total_length = 0, toget = *num, dumped_records = 0; - *errcode=0; Z_Records *records = (Z_Records *) odr_malloc (a->encode, sizeof(*records)); Z_NamePlusRecordList *reclist = @@ -1607,6 +1606,7 @@ static Z_Records *pack_records(association *a, char *setname, int start, Z_NamePlusRecord **list = (Z_NamePlusRecord **) odr_malloc (a->encode, sizeof(*list) * toget); + *errcode=0; records->which = Z_Records_DBOSD; records->u.databaseOrSurDiagnostics = reclist; reclist->num_records = 0; -- 1.7.10.4