Browse Source

-whitespace and indentation changes only

Christian Grothoff 2 years ago
parent
commit
6fe3a41cae
2 changed files with 11 additions and 9 deletions
  1. 7 5
      src/microhttpd/connection.c
  2. 4 4
      src/testzzuf/Makefile.am

+ 7 - 5
src/microhttpd/connection.c

@@ -2210,7 +2210,8 @@ setup_reply_properties (struct MHD_Connection *connection)
   c->rp.props.use_reply_body_headers = (use_rp_body >= RP_BODY_HEADERS_ONLY);
 
 #ifdef UPGRADE_SUPPORT
-  mhd_assert ((NULL == r->upgrade_handler) || (RP_BODY_NONE == use_rp_body));
+  mhd_assert ( (NULL == r->upgrade_handler) ||
+               (RP_BODY_NONE == use_rp_body) );
 #endif /* UPGRADE_SUPPORT */
 
   if (c->rp.props.use_reply_body_headers)
@@ -2237,7 +2238,8 @@ setup_reply_properties (struct MHD_Connection *connection)
     else
       use_chunked = false;
 
-    if ( (MHD_SIZE_UNKNOWN == r->total_size) && ! use_chunked)
+    if ( (MHD_SIZE_UNKNOWN == r->total_size) &&
+         (! use_chunked) )
     {
       /* End of the stream is indicated by closure */
       c->keepalive = MHD_CONN_MUST_CLOSE;
@@ -2262,10 +2264,11 @@ check_connection_reply (struct MHD_Connection *connection)
 {
   struct MHD_Connection *const c = connection; /**< a short alias */
   struct MHD_Response *const r = c->rp.response;  /**< a short alias */
-  mhd_assert (c->rp.props.set);
 
+  mhd_assert (c->rp.props.set);
 #ifdef HAVE_MESSAGES
-  if ((! c->rp.props.use_reply_body_headers) && (0 != r->total_size))
+  if ( (! c->rp.props.use_reply_body_headers) &&
+       (0 != r->total_size) )
   {
     MHD_DLOG (c->daemon,
               _ ("This reply with response code %u cannot use reply body. "
@@ -2477,7 +2480,6 @@ build_header_response (struct MHD_Connection *connection)
   mhd_assert (NULL != r);
 
   /* ** Adjust response properties ** */
-
   setup_reply_properties (c);
 
   mhd_assert (c->rp.props.set);

+ 4 - 4
src/testzzuf/Makefile.am

@@ -8,10 +8,10 @@ SUBDIRS  = .
 ZZUF_SEED = 0
 
 # Additional flags for zzuf
-ZZUF_FLAGS = 
+ZZUF_FLAGS =
 
 # Additional flags for socat (if socat is used)
-SOCAT_FLAGS = 
+SOCAT_FLAGS =
 
 if FORCE_USE_ZZUF_SOCAT
 TEST_RUNNER_SCRIPT = zzuf_socat_test_runner.sh
@@ -95,9 +95,9 @@ warn_vheavy_use:
 	@echo "NOTICE" ; \
 	echo "NOTICE: Full heavy tests are enabled. Each test may take up to several minutes to complete." ; \
 	echo "NOTICE"
-	
 
-tests_common_sources = mhd_debug_funcs.h mhd_debug_funcs.c 
+
+tests_common_sources = mhd_debug_funcs.h mhd_debug_funcs.c
 
 test_get_SOURCES = \
   test_get.c $(tests_common_sources)