diff options
author | Patrick Griffis <pgriffis@igalia.com> | 2023-01-20 14:26:33 -0600 |
---|---|---|
committer | Patrick Griffis <pgriffis@igalia.com> | 2023-01-20 14:26:47 -0600 |
commit | 9d8f1150a17a0581d48ce7442e7181a3817f0355 (patch) | |
tree | 9885f8e5448ea99c968dbce844e6ba9dc0e8fc98 /tests/websocket-test.c | |
parent | 09b70ae1e37038e96c50240f340a5941706c8c5b (diff) | |
download | libsoup-9d8f1150a17a0581d48ce7442e7181a3817f0355.tar.gz |
websocket-test: Fix minor warnings
Diffstat (limited to 'tests/websocket-test.c')
-rw-r--r-- | tests/websocket-test.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/websocket-test.c b/tests/websocket-test.c index e105fc1d..b954b01f 100644 --- a/tests/websocket-test.c +++ b/tests/websocket-test.c @@ -914,7 +914,7 @@ test_soup_websocket_client_prepare_handshake_ignores_invalid_protocols (Test *te gconstpointer unused) { SoupMessage *msg; - char *protocol; + const char *protocol; msg = soup_message_new ("GET", "http://127.0.0.1"); soup_websocket_client_prepare_handshake (msg, NULL, (char **) invalid_protocols, NULL); @@ -929,11 +929,9 @@ test_protocol_client_invalid_direct (Test *test, SoupMessage *msg; SoupServerMessage *server_msg; SoupMessageHeaders *request_headers; - SoupMessageHeaders *response_headers; SoupMessageHeadersIter iter; const char *name, *value; gboolean ok; - const char *protocol; GError *error = NULL; msg = soup_message_new ("GET", "http://127.0.0.1"); |