]> granicus.if.org Git - curl/commitdiff
cmake: fixed comments in compile checks code
authorSergei Nikulov <snikulov@topcon.com>
Mon, 28 May 2018 06:01:48 +0000 (09:01 +0300)
committerSergei Nikulov <snikulov@users.noreply.github.com>
Tue, 29 May 2018 06:13:06 +0000 (09:13 +0300)
CMake/CurlTests.c

index ac959f34061b34d1efaeed26f237db054d2c6cbc..ab244ac39380f78e5c8c9daea6d6eace43b40524 100644 (file)
@@ -513,7 +513,7 @@ void check(char c) {}
 int
 main () {
   char buffer[1024];
-  // This will not compile if strerror_r does not return a char*
+  /* This will not compile if strerror_r does not return a char* */
   check(strerror_r(EACCES, buffer, sizeof(buffer))[0]);
   return 0;
 }
@@ -522,13 +522,13 @@ main () {
 #include <string.h>
 #include <errno.h>
 
-// float, because a pointer can't be implicitly cast to float
+/* float, because a pointer can't be implicitly cast to float */
 void check(float f) {}
 
 int
 main () {
   char buffer[1024];
-  // This will not compile if strerror_r does not return an int
+  /* This will not compile if strerror_r does not return an int */
   check(strerror_r(EACCES, buffer, sizeof(buffer)));
   return 0;
 }