X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Felementset.c;h=3e453d58f8c049c6b961f395f931c50058621d12;hp=173bc0fee5022be1f57b9e42a03ca407bc775042;hb=fe507b6b15788a3a8e58063d9dae52532a5229a5;hpb=df2adb23954e8ad27dac8e234ee9206c5d980dd9 diff --git a/src/elementset.c b/src/elementset.c index 173bc0f..3e453d5 100644 --- a/src/elementset.c +++ b/src/elementset.c @@ -1,12 +1,12 @@ /* - * Copyright (C) 1995-2006, Index Data ApS + * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: elementset.c,v 1.1 2006-11-14 08:48:26 adam Exp $ + * $Id: elementset.c,v 1.4 2007-05-06 20:12:20 adam Exp $ */ /** - * \file tpath.c - * \brief File Path utilities + * \file elementset.c + * \brief Z39.50 element set utilities */ #if HAVE_CONFIG_H @@ -33,10 +33,12 @@ const char *yaz_get_esn(Z_RecordComposition *comp) void yaz_set_esn(Z_RecordComposition **comp_p, const char *esn, NMEM nmem) { - Z_RecordComposition *comp = nmem_malloc(nmem, sizeof(*comp)); + Z_RecordComposition *comp = (Z_RecordComposition *) + nmem_malloc(nmem, sizeof(*comp)); comp->which = Z_RecordComp_simple; - comp->u.simple = nmem_malloc(nmem, sizeof(*comp->u.simple)); + comp->u.simple = (Z_ElementSetNames *) + nmem_malloc(nmem, sizeof(*comp->u.simple)); comp->u.simple->which = Z_ElementSetNames_generic; comp->u.simple->u.generic = nmem_strdup(nmem, esn); *comp_p = comp;