aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_urlparse.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-31 13:06:08 +0100
committerChristian Grothoff <christian@grothoff.org>2019-10-31 13:06:08 +0100
commit7389c3452884ad29faf5a2d6856aebd364ffae6b (patch)
tree71246e22c8513c0dcbf79b837cb9c084c29e434c /src/testcurl/test_urlparse.c
parente0a076284525eaf2ec4cb356a40cccc25e24f2b1 (diff)
downloadlibmicrohttpd-7389c3452884ad29faf5a2d6856aebd364ffae6b.tar.gz
libmicrohttpd-7389c3452884ad29faf5a2d6856aebd364ffae6b.zip
tighten formatting rules
Diffstat (limited to 'src/testcurl/test_urlparse.c')
-rw-r--r--src/testcurl/test_urlparse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testcurl/test_urlparse.c b/src/testcurl/test_urlparse.c
index f1bab3d1..e8770330 100644
--- a/src/testcurl/test_urlparse.c
+++ b/src/testcurl/test_urlparse.c
@@ -68,6 +68,7 @@ copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx)
68 return size * nmemb; 68 return size * nmemb;
69} 69}
70 70
71
71static int 72static int
72test_values (void *cls, 73test_values (void *cls,
73 enum MHD_ValueKind kind, 74 enum MHD_ValueKind kind,
@@ -87,6 +88,7 @@ test_values (void *cls,
87 return MHD_YES; 88 return MHD_YES;
88} 89}
89 90
91
90static int 92static int
91ahc_echo (void *cls, 93ahc_echo (void *cls,
92 struct MHD_Connection *connection, 94 struct MHD_Connection *connection,
@@ -156,7 +158,7 @@ testInternalGet (int poll_flag)
156 { 158 {
157 const union MHD_DaemonInfo *dinfo; 159 const union MHD_DaemonInfo *dinfo;
158 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); 160 dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
159 if ((NULL == dinfo) ||(0 == dinfo->port) ) 161 if ((NULL == dinfo) || (0 == dinfo->port) )
160 { 162 {
161 MHD_stop_daemon (d); return 32; 163 MHD_stop_daemon (d); return 32;
162 } 164 }
@@ -205,7 +207,7 @@ main (int argc, char *const *argv)
205 unsigned int errorCount = 0; 207 unsigned int errorCount = 0;
206 (void) argc; /* Unused. Silent compiler warning. */ 208 (void) argc; /* Unused. Silent compiler warning. */
207 209
208 if ((NULL == argv)||(0 == argv[0])) 210 if ((NULL == argv) || (0 == argv[0]))
209 return 99; 211 return 99;
210 oneone = has_in_name (argv[0], "11"); 212 oneone = has_in_name (argv[0], "11");
211 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 213 if (0 != curl_global_init (CURL_GLOBAL_WIN32))