summaryrefslogtreecommitdiff
path: root/src/tool_setopt.c
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 /src/tool_setopt.c
parentddecd28268b78ae3361bc010c719446d55a8f894 (diff)
downloadcurl-26a7d51c21bce00e332bbd10443594edb879a871.tar.gz
checksrc: warn on space after exclamation mark
Closes #6034
Diffstat (limited to 'src/tool_setopt.c')
-rw-r--r--src/tool_setopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_setopt.c b/src/tool_setopt.c
index 02f305729..0dd7a57a2 100644
--- a/src/tool_setopt.c
+++ b/src/tool_setopt.c
@@ -267,7 +267,7 @@ static char *c_escape(const char *str, curl_off_t len)
strcpy(e, "\\\"");
e += 2;
}
- else if(! isprint(c)) {
+ else if(!isprint(c)) {
msnprintf(e, 5, "\\x%02x", (unsigned)c);
e += 4;
}
@@ -299,7 +299,7 @@ CURLcode tool_setopt_enum(CURL *curl, struct GlobalConfig *config,
if(nv->value == lval)
break; /* found it */
}
- if(! nv->name) {
+ if(!nv->name) {
/* If no definition was found, output an explicit value.
* This could happen if new values are defined and used
* but the NameValue list is not updated. */