From d4d8689fde6638d9c1063d48bd6cfdfb0691dff3 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Fri, 16 Oct 2026 19:45:27 +0000 Subject: [PATCH] Fix h2ws test client option parsing on unsigned-char platforms: * test/clients/h2ws.c (main): Use int for the getopt() return value; with unsigned char (e.g. on aarch64) the -1 terminator is never matched, so every invocation failed with "invalid option". Co-Authored-By: Claude Fable 5 GitHub: PR #855 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1939168 13f79535-47bb-0310-9956-ffa450edef68 --- test/clients/h2ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/clients/h2ws.c b/test/clients/h2ws.c index 309348944b..26864405ca 100644 --- a/test/clients/h2ws.c +++ b/test/clients/h2ws.c @@ -973,7 +973,7 @@ int main(int argc, char *argv[]) struct uri uri; struct h2_session session; struct ws_stream *stream; - char ch; + int ch; cmd = argv[0]; while((ch = getopt(argc, argv, "c:vh")) != -1) {