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. --- db.c.orig 2026-10-25 13:25:35.360511653 +0000 +++ db.c @@@@ -283,7 +283,7 @@@@ elist_alloc(register u_int32_t a, regist BCOPY(e, ep->e, 6); if (h == NULL && !initializing) h = getsname(a); - if (h != NULL && !isdigit((int)*h)) + if (h != NULL && !isdigit((unsigned char)*h)) strcpy(ep->h, h); ep->t = t; return (ep); @@@@ -301,7 +301,7 @@@@ check_hname(register struct ainfo *ap) return; ep = ap->elist[0]; h = getsname(ap->a); - if (!isdigit((int)*h) && strcmp(h, ep->h) != 0) { + if (!isdigit((unsigned char)*h) && strcmp(h, ep->h) != 0) { syslog(LOG_INFO, "hostname changed %s %s %s -> %s", intoa(ap->a), e2str(ep->e), ep->h, h); strcpy(ep->h, h); @