head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.10.25.15.27.12; author taca; state Exp; branches; next ; commitid Oh9afH2eFC6m7S0H; desc @@ 1.1 log @net/arpwatch: fix runtime problem on NetBSD 11 * Add descriptions to each patch files. * Pass correct type to ctype(3) function to fix runtime problem on NetBSD 11. * Reduce pkglint warnings except LICENSE. It might build with bcopy.c from original BSD license and most of other codes contains 0-clause-bsd, but I'm not sure. So LICENSE is commented out for now. Bump PKGREVISION. @ text @$NetBSD$ * Pass correct type to ctype(3) function. --- file.c.orig 2026-10-25 13:25:35.361730749 +0000 +++ file.c @@@@ -102,7 +102,7 @@@@ fprintf(stderr, "file_loop: %s:%d bad et cp = cp2; if ((cp2 = strchr(cp, '\t')) != NULL) *cp2++ = '\0'; - if (!isdigit((int)*cp) || (int32_t)(a = inet_addr(cp)) == -1) { + if (!isdigit((unsigned char)*cp) || (int32_t)(a = inet_addr(cp)) == -1) { if ((hp = gethostbyname(cp)) == NULL) { syslog(LOG_ERR, "file_loop: %s:%d bad hostname \"%s\"", @