Description: Fix incompatible pointer type errors
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy@users.sourceforge.net>
Bug-Debian: https://bugs.debian.org/1114209
Bug: https://sourceforge.net/p/mlterm/patches/26/
Forwarded: https://sourceforge.net/p/mlterm/patches/26/attachment/fix-incompat-pointer-types.patch
Index: mlterm/inputmethod/wnn/wnnlib.c
===================================================================
--- mlterm.orig/inputmethod/wnn/wnnlib.c	2025-08-11 17:05:15.945292830 +0200
+++ mlterm/inputmethod/wnn/wnnlib.c	2025-09-06 16:31:33.148093152 +0200
@@ -3443,7 +3443,7 @@
      */
 #if JSERVER_VERSION > 0x4030
     wnnbuf = jl_open_lang(envname, server, "ja_JP",
-                          NULL, confirm, (int (*)(const char*))errmsg, timeout);
+                          NULL, confirm, (int (*)(void))errmsg, timeout);
 #else
     wnnbuf = jl_open(envname, server, NULL, confirm, errmsg, timeout);
 #endif
@@ -3533,7 +3533,7 @@
     }
 
     /* $B4D6-@_Dj$9$k(B */
-    (void)jl_set_env_wnnrc(wnnenv, rcfile, confirm, (int (*)(const char*))errmsg);
+    (void)jl_set_env_wnnrc(wnnenv, rcfile, confirm, (int (*)(void))errmsg);
 
     return wnnbuf;
 }
