Piotr Czajkowski 6 years ago
parent
commit
2ee448a8d7
1 changed files with 4 additions and 3 deletions
  1. 4 3
      curl.c

+ 4 - 3
curl.c

@@ -2,7 +2,8 @@
 
 // Borrowed from https://curl.haxx.se/libcurl/c/getinmemory.html
 
-struct MemoryStruct {                                                                                                                                     char *memory;
+struct MemoryStruct {
+	char *memory;
 	size_t size;
 };
 
@@ -50,9 +51,9 @@ char *getData(char *url) {
 	   field, so we provide one */ 
 	curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0");
 
-	#ifdef WIN32
+#ifdef WIN32
 	curl_easy_setopt(curl_handle, CURLOPT_CAINFO, "cacert.pem");
-	#endif
+#endif
 
 	/* get it! */ 
 	res = curl_easy_perform(curl_handle);