aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2016-12-19 02:31:59 -0500
committerJay Satiro <raysatiro@yahoo.com>2016-12-19 02:31:59 -0500
commitc2402b6e02c6de2e4be0f87fd094da8e24d81d87 (patch)
tree67951a14c41b799d30b457063e21373b4c2232af
parentd00f2a8f2e8529024709f70c8ab4c4138dc651a0 (diff)
tests: checksrc compliance
-rwxr-xr-xlib/checksrc.pl3
-rw-r--r--src/tool_hugehelp.c.cvs2
-rw-r--r--tests/libtest/test.h2
-rw-r--r--tests/server/util.h2
4 files changed, 6 insertions, 3 deletions
diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index c56e9c841..7857bbfc7 100755
--- a/lib/checksrc.pl
+++ b/lib/checksrc.pl
@@ -57,7 +57,8 @@ my %warnings = (
'UNUSEDIGNORE' => 'a warning ignore was not used',
'OPENCOMMENT' => 'file ended with a /* comment still "open"',
'ASTERISKSPACE' => 'pointer declared with space after asterisk',
- 'ASTERISKNOSPACE' => 'pointer declared without space before asterisk'
+ 'ASTERISKNOSPACE' => 'pointer declared without space before asterisk',
+ 'ASSIGNWITHINCONDITION' => 'assignment within conditional expression'
);
sub readwhitelist {
diff --git a/src/tool_hugehelp.c.cvs b/src/tool_hugehelp.c.cvs
index 2499a4836..6ec5e9149 100644
--- a/src/tool_hugehelp.c.cvs
+++ b/src/tool_hugehelp.c.cvs
@@ -25,5 +25,5 @@
void hugehelp(void)
{
- puts ( "This is a silly replacement for the actual file.");
+ puts("This is a silly replacement for the actual file.");
}
diff --git a/tests/libtest/test.h b/tests/libtest/test.h
index 9fd33aa72..3da03b838 100644
--- a/tests/libtest/test.h
+++ b/tests/libtest/test.h
@@ -20,6 +20,8 @@
*
***************************************************************************/
+/* !checksrc! disable ASSIGNWITHINCONDITION all */
+
/* Now include the curl_setup.h file from libcurl's private libdir (the source
version, but that might include "curl_config.h" from the build dir so we
need both of them in the include path), so that we get good in-depth
diff --git a/tests/server/util.h b/tests/server/util.h
index c90fcdf32..a2a56badd 100644
--- a/tests/server/util.h
+++ b/tests/server/util.h
@@ -44,7 +44,7 @@ extern const char *serverlogfile;
#undef perror
#define perror(m) win32_perror(m)
-void win32_perror (const char *msg);
+void win32_perror(const char *msg);
#endif /* WIN32 */
#ifdef USE_WINSOCK