summaryrefslogtreecommitdiff
path: root/lib/inet_pton.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 /lib/inet_pton.c
parentddecd28268b78ae3361bc010c719446d55a8f894 (diff)
downloadcurl-26a7d51c21bce00e332bbd10443594edb879a871.tar.gz
checksrc: warn on space after exclamation mark
Closes #6034
Diffstat (limited to 'lib/inet_pton.c')
-rw-r--r--lib/inet_pton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inet_pton.c b/lib/inet_pton.c
index 9c87a0562..4923cae24 100644
--- a/lib/inet_pton.c
+++ b/lib/inet_pton.c
@@ -1,6 +1,6 @@
/* This is from the BIND 4.9.4 release, modified to compile by itself */
-/* Copyright (c) 1996 - 2019 by Internet Software Consortium.
+/* Copyright (c) 1996 - 2020 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -112,7 +112,7 @@ inet_pton4(const char *src, unsigned char *dst)
if(val > 255)
return (0);
*tp = (unsigned char)val;
- if(! saw_digit) {
+ if(!saw_digit) {
if(++octets > 4)
return (0);
saw_digit = 1;