summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-10-02 10:58:52 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-10-02 16:35:53 +0200
commit26a7d51c21bce00e332bbd10443594edb879a871 (patch)
treed10c7901ebd1a7133f66bbd4e5a49e1120b1b6af /tests
parentddecd28268b78ae3361bc010c719446d55a8f894 (diff)
downloadcurl-26a7d51c21bce00e332bbd10443594edb879a871.tar.gz
checksrc: warn on space after exclamation mark
Closes #6034
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib505.c4
-rw-r--r--tests/libtest/lib541.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/libtest/lib505.c b/tests/libtest/lib505.c
index cc7463bde..42e0eec41 100644
--- a/tests/libtest/lib505.c
+++ b/tests/libtest/lib505.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -71,7 +71,7 @@ int test(char *URL)
return TEST_ERR_MAJOR_BAD;
}
- if(! file_info.st_size) {
+ if(!file_info.st_size) {
fprintf(stderr, "ERROR: file %s has zero size!\n", libtest_arg2);
fclose(hd_src);
return TEST_ERR_MAJOR_BAD;
diff --git a/tests/libtest/lib541.c b/tests/libtest/lib541.c
index bcbaa481c..57d720412 100644
--- a/tests/libtest/lib541.c
+++ b/tests/libtest/lib541.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -63,7 +63,7 @@ int test(char *URL)
return TEST_ERR_MAJOR_BAD;
}
- if(! file_info.st_size) {
+ if(!file_info.st_size) {
fprintf(stderr, "ERROR: file %s has zero size!\n", libtest_arg2);
fclose(hd_src);
return TEST_ERR_MAJOR_BAD;