From b3aacc36f4f617fbc68126f102f6b96b7969932a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 6 Jun 2005 17:34:58 +0000 Subject: [PATCH] Avoid mixed stmt, var declare --- client/client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/client.c b/client/client.c index bfeeb4c..fbec6de 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: client.c,v 1.284 2005-06-06 10:29:33 adam Exp $ + * $Id: client.c,v 1.285 2005-06-06 17:34:58 adam Exp $ */ #include @@ -2256,10 +2256,10 @@ static int cmd_xmlupdate(const char *arg) Z_APDU *apdu = zget_APDU(out, Z_APDU_extendedServicesRequest); Z_ExtendedServicesRequest *req = apdu->u.extendedServicesRequest; - req->packageType = yaz_oidval_to_z3950oid(out, CLASS_EXTSERV, - VAL_XMLUPDATE); Z_External *ext = (Z_External *) odr_malloc(out, sizeof(*ext)); req->taskSpecificParameters = ext; + req->packageType = yaz_oidval_to_z3950oid(out, CLASS_EXTSERV, + VAL_XMLUPDATE); ext->direct_reference = req->packageType; ext->descriptor = 0; ext->indirect_reference = 0; -- 1.7.10.4