aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-11-17 15:09:28 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-11-21 15:43:19 +0300
commiteac16d15db60911ff5d6193f2a8201ff1ae6ff0e (patch)
tree45c3275a292b679203d266464689e9d5c0566c53
parent87ab1ec7f7e4f31c95fedfdfffa5a940e9d1bcdc (diff)
downloadlibmicrohttpd-eac16d15db60911ff5d6193f2a8201ff1ae6ff0e.tar.gz
libmicrohttpd-eac16d15db60911ff5d6193f2a8201ff1ae6ff0e.zip
Tests: code style fixes
-rw-r--r--src/microhttpd/test_upgrade.c6
-rw-r--r--src/microhttpd/test_upgrade_large.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c
index 873b832a..316405ec 100644
--- a/src/microhttpd/test_upgrade.c
+++ b/src/microhttpd/test_upgrade.c
@@ -456,7 +456,7 @@ notify_completed_cb (void *cls,
456 void **con_cls, 456 void **con_cls,
457 enum MHD_RequestTerminationCode toe) 457 enum MHD_RequestTerminationCode toe)
458{ 458{
459 pthread_t*ppth = *con_cls; 459 pthread_t *ppth = *con_cls;
460 460
461 (void) cls; 461 (void) cls;
462 (void) connection; /* Unused. Silent compiler warning. */ 462 (void) connection; /* Unused. Silent compiler warning. */
@@ -464,7 +464,7 @@ notify_completed_cb (void *cls,
464 (toe != MHD_REQUEST_TERMINATED_CLIENT_ABORT) && 464 (toe != MHD_REQUEST_TERMINATED_CLIENT_ABORT) &&
465 (toe != MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN) ) 465 (toe != MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN) )
466 abort (); 466 abort ();
467 if (! pthread_equal (**((pthread_t**) con_cls), 467 if (! pthread_equal (**((pthread_t **) con_cls),
468 pthread_self ())) 468 pthread_self ()))
469 abort (); 469 abort ();
470 if (NULL != ppth) 470 if (NULL != ppth)
@@ -864,7 +864,7 @@ ahc_upgrade (void *cls,
864 864
865 if (NULL == *con_cls) 865 if (NULL == *con_cls)
866 abort (); 866 abort ();
867 if (! pthread_equal (**((pthread_t**) con_cls), pthread_self ())) 867 if (! pthread_equal (**((pthread_t **) con_cls), pthread_self ()))
868 abort (); 868 abort ();
869 resp = MHD_create_response_for_upgrade (&upgrade_cb, 869 resp = MHD_create_response_for_upgrade (&upgrade_cb,
870 NULL); 870 NULL);
diff --git a/src/microhttpd/test_upgrade_large.c b/src/microhttpd/test_upgrade_large.c
index e080266c..dedc08bb 100644
--- a/src/microhttpd/test_upgrade_large.c
+++ b/src/microhttpd/test_upgrade_large.c
@@ -630,7 +630,7 @@ notify_completed_cb (void *cls,
630 void **con_cls, 630 void **con_cls,
631 enum MHD_RequestTerminationCode toe) 631 enum MHD_RequestTerminationCode toe)
632{ 632{
633 pthread_t*ppth = *con_cls; 633 pthread_t *ppth = *con_cls;
634 634
635 (void) cls; 635 (void) cls;
636 (void) connection; /* Unused. Silent compiler warning. */ 636 (void) connection; /* Unused. Silent compiler warning. */
@@ -638,7 +638,7 @@ notify_completed_cb (void *cls,
638 (toe != MHD_REQUEST_TERMINATED_CLIENT_ABORT) && 638 (toe != MHD_REQUEST_TERMINATED_CLIENT_ABORT) &&
639 (toe != MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN) ) 639 (toe != MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN) )
640 abort (); 640 abort ();
641 if (! pthread_equal (**((pthread_t**) con_cls), 641 if (! pthread_equal (**((pthread_t **) con_cls),
642 pthread_self ())) 642 pthread_self ()))
643 abort (); 643 abort ();
644 if (NULL != ppth) 644 if (NULL != ppth)
@@ -1051,7 +1051,7 @@ ahc_upgrade (void *cls,
1051 1051
1052 if (NULL == *con_cls) 1052 if (NULL == *con_cls)
1053 abort (); 1053 abort ();
1054 if (! pthread_equal (**((pthread_t**) con_cls), pthread_self ())) 1054 if (! pthread_equal (**((pthread_t **) con_cls), pthread_self ()))
1055 abort (); 1055 abort ();
1056 resp = MHD_create_response_for_upgrade (&upgrade_cb, 1056 resp = MHD_create_response_for_upgrade (&upgrade_cb,
1057 NULL); 1057 NULL);