]> granicus.if.org Git - curl/commitdiff
examples/crawler.c: move #ifdef to column 0
authorDaniel Stenberg <daniel@haxx.se>
Wed, 11 Jul 2018 09:47:21 +0000 (11:47 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 11 Jul 2018 09:47:21 +0000 (11:47 +0200)
Apparently the C => HTML converter on the web site doesn't quite like it
otherwise.

Reported-by: Jeroen Ooms
docs/examples/crawler.c

index 47c4274736ccc8e9f8ccdf799c36e30c77392638..0aeb86545c305b60f81e9de0c94197e6cc523890 100644 (file)
@@ -149,9 +149,9 @@ int main(void)
   curl_multi_setopt(multi_handle, CURLMOPT_MAX_HOST_CONNECTIONS, 6L);
 
   /* enables http/2 if available */
-  #ifdef CURLPIPE_MULTIPLEX
-    curl_multi_setopt(multi_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);
-  #endif
+#ifdef CURLPIPE_MULTIPLEX
+  curl_multi_setopt(multi_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);
+#endif
 
   /* sets html start page */
   curl_multi_add_handle(multi_handle, make_handle(start_page));