X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fccl_stop_words.c;h=1a674116d01ad77071cc1a58f8762a442e6ee5c1;hb=3b792849c676d96918850e2f1e0af87a75278501;hp=6a36e92a19fda95f6d01ed8e7250e31d8dc0e9a1;hpb=73f6b7a6b12a1e0e54c9cc360f552a56726d75fd;p=yaz-moved-to-github.git diff --git a/src/ccl_stop_words.c b/src/ccl_stop_words.c index 6a36e92..1a67411 100644 --- a/src/ccl_stop_words.c +++ b/src/ccl_stop_words.c @@ -69,14 +69,15 @@ static void append_removed_item(ccl_stop_words_t csw, const char *qname, const char *t, size_t len) { - struct ccl_stop_info *csi = nmem_malloc(csw->nmem, sizeof(*csi)); + struct ccl_stop_info *csi = (struct ccl_stop_info *) + nmem_malloc(csw->nmem, sizeof(*csi)); struct ccl_stop_info **csip = &csw->removed_items; if (qname) csi->qualname = nmem_strdup(csw->nmem, qname); else csi->qualname = 0; - csi->term = nmem_malloc(csw->nmem, len+1); + csi->term = (char *) nmem_malloc(csw->nmem, len+1); memcpy(csi->term, t, len); csi->term[len] = '\0'; csi->next = 0; @@ -90,7 +91,7 @@ static void append_removed_item(ccl_stop_words_t csw, ccl_stop_words_t ccl_stop_words_create(void) { NMEM nmem = nmem_create(); - ccl_stop_words_t csw = xmalloc(sizeof(*csw)); + ccl_stop_words_t csw = (ccl_stop_words_t) xmalloc(sizeof(*csw)); csw->nmem = nmem; csw->removed_items = 0; csw->blank_chars = xstrdup(" \r\n\t");