X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoom-opt.c;h=b74698cae6ddf9dbcdea59e00bae9d0b5286cab9;hb=0e81a96bebc0be43fc2972332091cdac57dcac5f;hp=a7efdc76684e21823b88d16a42d573ba2c5a905e;hpb=cd8a27308e5bb886f561b517d091437c7afbf53c;p=yaz-moved-to-github.git diff --git a/zoom/zoom-opt.c b/zoom/zoom-opt.c index a7efdc7..b74698c 100644 --- a/zoom/zoom-opt.c +++ b/zoom/zoom-opt.c @@ -1,5 +1,5 @@ /* - * $Id: zoom-opt.c,v 1.3 2002-01-03 12:18:38 adam Exp $ + * $Id: zoom-opt.c,v 1.4 2002-01-28 09:27:48 adam Exp $ * * ZOOM layer for C, options handling */ @@ -16,7 +16,7 @@ ZOOM_options ZOOM_options_create (void) ZOOM_options ZOOM_options_create_with_parent (ZOOM_options parent) { - ZOOM_options opt = xmalloc (sizeof(*opt)); + ZOOM_options opt = (ZOOM_options) xmalloc (sizeof(*opt)); opt->refcount = 1; opt->callback_func = 0; @@ -85,7 +85,7 @@ void ZOOM_options_set (ZOOM_options opt, const char *name, const char *value) } e = &(*e)->next; } - *e = xmalloc (sizeof(**e)); + *e = (struct ZOOM_options_entry *) xmalloc (sizeof(**e)); (*e)->name = xstrdup (name); (*e)->value = xstrdup (value); (*e)->next = 0;