From 83c4bd6ae175bfc59576f76c5508c0c12a8f253f Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 30 Sep 2004 11:15:52 +0000 Subject: [PATCH] Added typecast and removed bad assignment --- src/seshigh.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/seshigh.c b/src/seshigh.c index 51cd30e..8e7a00f 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.28 2004-09-30 11:13:42 adam Exp $ + * $Id: seshigh.c,v 1.29 2004-09-30 11:15:52 adam Exp $ */ /* @@ -519,10 +519,8 @@ static int srw_bend_fetch(association *assoc, int pos, rr.comp->u.complex->generic->elementSpec = 0; if (srw_req->recordSchema) { - rr.comp->u.complex->generic->schema.uri = - rr.comp->u.complex->generic->elementSpec = - odr_malloc(assoc->encode, sizeof(Z_ElementSpec)); + (Z_ElementSpec *) odr_malloc(assoc->encode, sizeof(Z_ElementSpec)); rr.comp->u.complex->generic->elementSpec->which = Z_ElementSpec_elementSetName; rr.comp->u.complex->generic->elementSpec->u.elementSetName = @@ -1340,7 +1338,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.28 $"); + version = odr_strdup(assoc->encode, "$Revision: 1.29 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; resp->implementationVersion = odr_prepend(assoc->encode, -- 1.7.10.4