head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.06.28.06.16.28; author tsutsui; state Exp; branches; next ; commitid J1Yf621yszsDTwLG; desc @@ 1.1 log @ja-freewnn-{lib,server}: fix builds with gcc 14 and later - Add necessary standard headers to pull proper prototypes in test programs in the generated configure script to avoid errors caused by -Wimplicit-function-declaration (which is fatal on -std=gnu23) - Use proper qsort(3)-compatible comparator prototypes - Add missing prototypes for several function pointer arguments - Fix other -Wimcompatiple-pointer-types warnings - Appease several -Wpointer-compare and -Wpointer-sign warnings - Move -Wchar-subscripts fixes from SUBST to explicit patch files - Also fix wnn_sStrncpy() to use the correct conversion direction (found during -Wincompatiple-pointer-types cleanup) While here, take MAINTAINERship. Bump PKGREVISIONs. @ text @$NetBSD$ - Appease -Wincompatible-pointer-types warning --- Wnn/jserver/snd_rcv.c.orig 2003-05-11 18:43:16.000000000 +0000 +++ Wnn/jserver/snd_rcv.c @@@@ -54,15 +54,16 @@@@ fopen_write_cur (fn) /* JS_FILE_SEND (server recieves) */ int fread_cur (p, size, nitems) - char *p; + void *p; register int size, nitems; { + char *cp = p; register int i, j, xx; for (i = 0; i < nitems; i++) { for (j = 0; j < size; j++) { - *p++ = xx = xgetc_cur (); + *cp++ = xx = xgetc_cur (); if (xx == -1) return i; } @