head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.07.10.23.32.37; author tsutsui; state Exp; branches; next ; commitid XXwM2i2aAbK8faNG; desc @@ 1.1 log @ja-freewnn-*: make FreeWnn-1.1.1-a023 builds with gcc 15 - various fixes to use proper function prototypes for C23 - use proper function types for signal handlers - use proper variadic arguments to print messages using printf formats - fix test programs in configure.in and regen configure using autoconf 2.72 for modern C23 compilers - appease more several warnings - also apply fixes to build FreeWnn on recent Linux distributions: - set LC_ALL=C before egrep(1) against EUC files to avoid unexpected errors for EUC files - use _DEFAULT_SOURCE for Linux rather than obsolete _BSD_SOURCE for newer glibc - update several patch comments properly to clarify each fix - gcc 14 enables -Werror=incompatible-pointer-types by default but still uses -std=gnu17 by default - gcc 15 has switched to -std=gnu23 by default so that old K&R style function declarations ("no argument" is treated as "void") cause more incompatible-pointer-types and too-many-arguments errors - remove patches against sources under Xwnmo that seems unmaintained (no configure settings) and not enabled by the default builds Bump PKGREVISIONs. @ text @$NetBSD$ - Remove unnecessary old stype declarations for standard C functions - Add a proper arg for a signal handler function --- Wnn/jlib/js.c.orig 2015-05-09 23:42:04.000000000 +0000 +++ Wnn/jlib/js.c @@@@ -130,7 +130,7 @@@@ static int rbc = -1; # endif /* defined(EWOULDBLOCK) */ #endif /* defined(EAGAIN) */ -static void connect_timeout (); +static void connect_timeout FRWNN_PARAMS((int)); static int _get_server_name FRWNN_PARAMS((const char *, char *)); static int writen FRWNN_PARAMS((int)); static char *get_unixdomain_of_serv_defs FRWNN_PARAMS((const char *lang)); @@@@ -395,8 +395,10 @@@@ cd_open_in (server, lang, timeout) } static void -connect_timeout () +connect_timeout (sig) + int sig; { + (void) sig; } /* get server name and return serverNo */ @@@@ -726,7 +728,6 @@@@ dmp (p, c) static char * getlogname () { - struct passwd *getpwuid (); return getpwuid (getuid ())->pw_name; } @@@@ -906,7 +907,6 @@@@ js_set_lang (env, lang) register char *lang; { register char *p; - extern char *getenv (); /* if not specified language , use $LANG */ if (lang == 0 || *lang == 0) @