head 1.1; access; symbols pkgsrc-2026Q2:1.1.0.2 pkgsrc-2026Q2-base:1.1; locks; strict; comment @ * @; 1.1 date 2026.06.14.12.57.43; author nia; state Exp; branches; next ; commitid L7UPs5pqt1Y7zLJG; desc @@ 1.1 log @libwww: Fails with C23 default language. While here, fix various warnings. @ text @$NetBSD$ Fix ctype usage. --- Library/src/HTTPGen.c.orig 2026-06-14 12:53:36.556710502 +0000 +++ Library/src/HTTPGen.c @@@@ -140,7 +140,7 @@@@ PRIVATE int HTTPGenMake (HTStream * me, HTRequest * re if (name && *name) { char * ptr = name; while (*ptr) { - if (isspace(*ptr)) *ptr='_'; + if (isspace((unsigned char)*ptr)) *ptr='_'; ptr++; } PUTS(name); @@@@ -148,7 +148,7 @@@@ PRIVATE int HTTPGenMake (HTStream * me, HTRequest * re if (value) { ptr = value; while (*ptr) { - if (isspace(*ptr)) *ptr=' '; + if (isspace((unsigned char)*ptr)) *ptr=' '; ptr++; } PUTS(value); @