From 26a7d51c21bce00e332bbd10443594edb879a871 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 2 Oct 2020 10:58:52 +0200 Subject: checksrc: warn on space after exclamation mark Closes #6034 --- src/tool_setopt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tool_setopt.c') 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. */ -- cgit v1.2.1