Do not pass NULL for the string in catch_errors
[deliverable/binutils-gdb.git] / gdb / charset.c
index afd9220e6b6bb8e5a3f1c07731f88990c39e2bf9..ee1ae20d562042827db4b8e38e1c3e8f84cdd6a7 100644 (file)
@@ -468,7 +468,7 @@ host_hex_value (char c)
 static void
 cleanup_iconv (void *p)
 {
-  iconv_t *descp = p;
+  iconv_t *descp = (iconv_t *) p;
   iconv_close (*descp);
 }
 
@@ -617,7 +617,7 @@ make_wchar_iterator (const gdb_byte *input, size_t bytes,
 static void
 do_cleanup_iterator (void *p)
 {
-  struct wchar_iterator *iter = p;
+  struct wchar_iterator *iter = (struct wchar_iterator *) p;
 
   iconv_close (iter->desc);
   xfree (iter->out);
This page took 0.023722 seconds and 4 git commands to generate.