No unsigned char's in public API (except for iconv)
[yaz-moved-to-github.git] / client / admin.c
index ed9db68..c7fb4e6 100644 (file)
@@ -241,7 +241,7 @@ int cmd_adm_import(const char *arg)
 #if OCT_SIZE
                 oct->size = status.st_size;
 #endif
 #if OCT_SIZE
                 oct->size = status.st_size;
 #endif
-                oct->buf = (unsigned char *) odr_malloc (out, oct->len);
+                oct->buf = (char *) odr_malloc (out, oct->len);
                 if (fread(oct->buf, 1, oct->len, inf) != (size_t) oct->len)
                 {
                     printf("Incomplete read of file %s\n", fname);
                 if (fread(oct->buf, 1, oct->len, inf) != (size_t) oct->len)
                 {
                     printf("Incomplete read of file %s\n", fname);