From 7389c3452884ad29faf5a2d6856aebd364ffae6b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 31 Oct 2019 13:06:08 +0100 Subject: tighten formatting rules --- src/testcurl/test_put.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'src/testcurl/test_put.c') diff --git a/src/testcurl/test_put.c b/src/testcurl/test_put.c index df399268..2326310a 100644 --- a/src/testcurl/test_put.c +++ b/src/testcurl/test_put.c @@ -67,6 +67,7 @@ putBuffer (void *stream, size_t size, size_t nmemb, void *ptr) return wrt; } + static size_t copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx) { @@ -79,6 +80,7 @@ copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx) return size * nmemb; } + static int ahc_echo (void *cls, struct MHD_Connection *connection, @@ -152,7 +154,7 @@ testInternalPut () { const union MHD_DaemonInfo *dinfo; dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); - if ((NULL == dinfo) ||(0 == dinfo->port) ) + if ((NULL == dinfo) || (0 == dinfo->port) ) { MHD_stop_daemon (d); return 32; } @@ -196,6 +198,7 @@ testInternalPut () return 0; } + static int testMultithreadedPut () { @@ -230,7 +233,7 @@ testMultithreadedPut () { const union MHD_DaemonInfo *dinfo; dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); - if ((NULL == dinfo) ||(0 == dinfo->port) ) + if ((NULL == dinfo) || (0 == dinfo->port) ) { MHD_stop_daemon (d); return 32; } @@ -275,6 +278,7 @@ testMultithreadedPut () return 0; } + static int testMultithreadedPoolPut () { @@ -309,7 +313,7 @@ testMultithreadedPoolPut () { const union MHD_DaemonInfo *dinfo; dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); - if ((NULL == dinfo) ||(0 == dinfo->port) ) + if ((NULL == dinfo) || (0 == dinfo->port) ) { MHD_stop_daemon (d); return 32; } @@ -399,7 +403,7 @@ testExternalPut () { const union MHD_DaemonInfo *dinfo; dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); - if ((NULL == dinfo) ||(0 == dinfo->port) ) + if ((NULL == dinfo) || (0 == dinfo->port) ) { MHD_stop_daemon (d); return 32; } @@ -480,9 +484,10 @@ testExternalPut () if (EINTR != errno) abort (); #else - if ((WSAEINVAL != WSAGetLastError ()) ||(0 != rs.fd_count) ||(0 != - ws.fd_count) - ||(0 != es.fd_count) ) + if ((WSAEINVAL != WSAGetLastError ()) || (0 != rs.fd_count) || (0 != + ws. + fd_count) + || (0 != es.fd_count) ) _exit (99); Sleep (1000); #endif @@ -524,14 +529,13 @@ testExternalPut () } - int main (int argc, char *const *argv) { unsigned int errorCount = 0; (void) argc; /* Unused. Silent compiler warning. */ - if ((NULL == argv)||(0 == argv[0])) + if ((NULL == argv) || (0 == argv[0])) return 99; oneone = has_in_name (argv[0], "11"); if (0 != curl_global_init (CURL_GLOBAL_WIN32)) -- cgit v1.2.3