mirror of
https://github.com/apache/httpd.git
synced 2026-10-23 22:49:01 +03:00
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 <noreply@anthropic.com> GitHub: PR #855 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1939168 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user