[libsoup/uint-msvc: 2/2] http2-test.c: Fix build on Visual Studio




commit d49694b4a458290c1c3dd38dd8ba8e11a09d1c57
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Mar 21 18:03:04 2022 +0800

    http2-test.c: Fix build on Visual Studio
    
    Visual Studio does not define uint for plain C, so just use unsigned
    int.

 tests/http2-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/http2-test.c b/tests/http2-test.c
index 8ac00173..cbc6c41b 100644
--- a/tests/http2-test.c
+++ b/tests/http2-test.c
@@ -566,7 +566,7 @@ do_connections_test (Test *test, gconstpointer data)
 
 #define N_TESTS 100
 
-        for (uint i = 0; i < N_TESTS; ++i) {
+        for (unsigned int i = 0; i < N_TESTS; ++i) {
                 SoupMessage *msg = soup_message_new ("GET", "https://127.0.0.1:5000/slow";);
                 soup_session_send_async (test->session, msg, G_PRIORITY_DEFAULT, NULL, on_send_ready, 
&complete_count);
                 g_object_unref (msg);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]