X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fcclqual.c;h=f771013225b3dcc461cd9ea48f000ac77202b944;hp=a62ebb127da78c92cbb3379f2d505cc6dc74803b;hb=fe507b6b15788a3a8e58063d9dae52532a5229a5;hpb=b8ab484f71da48a13342fff3ebd60efd23504681 diff --git a/src/cclqual.c b/src/cclqual.c index a62ebb1..f771013 100644 --- a/src/cclqual.c +++ b/src/cclqual.c @@ -48,7 +48,7 @@ /* CCL qualifiers * Europagate, 1995 * - * $Id: cclqual.c,v 1.11 2007-05-01 12:54:44 adam Exp $ + * $Id: cclqual.c,v 1.12 2007-05-06 20:12:20 adam Exp $ * * Old Europagate Log: * @@ -153,7 +153,7 @@ void ccl_qual_add_special_ar(CCL_bibset bibset, const char *n, void ccl_qual_add_special(CCL_bibset bibset, const char *n, const char *cp) { size_t no = 2; - char **vlist = xmalloc(no * sizeof(*vlist)); + char **vlist = (char **) xmalloc(no * sizeof(*vlist)); yaz_tok_cfg_t yt = yaz_tok_cfg_create(); int t; size_t i = 0; @@ -166,7 +166,7 @@ void ccl_qual_add_special(CCL_bibset bibset, const char *n, const char *cp) while (t == YAZ_TOK_STRING) { if (i >= no-1) - vlist = xrealloc(vlist, (no = no * 2) * sizeof(*vlist)); + vlist = (char **) xrealloc(vlist, (no = no * 2) * sizeof(*vlist)); vlist[i++] = xstrdup(yaz_tok_parse_string(tp)); t = yaz_tok_move(tp); }