diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-10-02 10:58:52 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-10-02 16:35:53 +0200 |
commit | 26a7d51c21bce00e332bbd10443594edb879a871 (patch) | |
tree | d10c7901ebd1a7133f66bbd4e5a49e1120b1b6af /src | |
parent | ddecd28268b78ae3361bc010c719446d55a8f894 (diff) | |
download | curl-26a7d51c21bce00e332bbd10443594edb879a871.tar.gz |
checksrc: warn on space after exclamation mark
Closes #6034
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_easysrc.c | 4 | ||||
-rw-r--r-- | src/tool_setopt.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/tool_easysrc.c b/src/tool_easysrc.c index bb1a135d8..7343f7d15 100644 --- a/src/tool_easysrc.c +++ b/src/tool_easysrc.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 @@ -113,7 +113,7 @@ CURLcode easysrc_addf(struct slist_wc **plist, const char *fmt, ...) va_start(ap, fmt); bufp = curlx_mvaprintf(fmt, ap); va_end(ap); - if(! bufp) { + if(!bufp) { ret = CURLE_OUT_OF_MEMORY; } else { 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. */ |