Add type casts for tests for C++ compile
[yaz-moved-to-github.git] / test / tstxmalloc.c
index 4d5f8e5..c43e265 100644 (file)
@@ -16,9 +16,9 @@ void tst(void)
 {
     char *p = 0;
 
-    p = xmalloc(10);
+    p = (char *) xmalloc(10);
     YAZ_CHECK(p);
-    p = xrealloc(p, 20);
+    p = (char *) xrealloc(p, 20);
     YAZ_CHECK(p);
     xfree(p);