aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Nikulov <snikulov@topcon.com>2018-05-28 09:01:48 +0300
committerSergei Nikulov <snikulov@users.noreply.github.com>2018-05-29 09:13:06 +0300
commit954284f9192ccc9719e39970f39c7ac2d9090511 (patch)
tree9ce72bb286bd169168b5c3531410af2d3e6c5dc8
parentc10f3a1e0bdc287767eb13541756162a105f0f50 (diff)
cmake: fixed comments in compile checks code
-rw-r--r--CMake/CurlTests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMake/CurlTests.c b/CMake/CurlTests.c
index ac959f340..ab244ac39 100644
--- a/CMake/CurlTests.c
+++ b/CMake/CurlTests.c
@@ -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;
}