SRW, CQL, 2003
[yaz-moved-to-github.git] / zutil / zoom-opt.c
index be0edd3..02a7ae0 100644 (file)
@@ -1,14 +1,13 @@
 /*
- * $Id: zoom-opt.c,v 1.1 2002-09-16 18:45:14 adam Exp $
+ * $Id: zoom-opt.c,v 1.3 2003-01-06 08:20:29 adam Exp $
  *
  * ZOOM layer for C, options handling
  */
 #include <assert.h>
-#include <yaz/xmalloc.h>
-#include <yaz/log.h>
-
 #include "zoom-p.h"
 
+#include <yaz/xmalloc.h>
+
 ZOOM_API(ZOOM_options)
 ZOOM_options_create_with_parent (ZOOM_options parent)
 {
@@ -101,7 +100,7 @@ ZOOM_options_setl (ZOOM_options opt, const char *name, const char *value,
             (*e)->value = 0;
             if (value)
             {
-                (*e)->value = xmalloc (len+1);
+                (*e)->value = (char *) xmalloc (len+1);
                 memcpy ((*e)->value, value, len);
                 (*e)->value[len] = '\0';
             }
@@ -114,7 +113,7 @@ ZOOM_options_setl (ZOOM_options opt, const char *name, const char *value,
     (*e)->value = 0;
     if (value)
     {
-        (*e)->value = xmalloc (len+1);
+        (*e)->value = (char *) xmalloc (len+1);
         memcpy ((*e)->value, value, len);
         (*e)->value[len] = '\0';
     }