From: Jarno Huuskonen Date: Sun, 21 May 2017 14:32:21 +0000 (+0300) Subject: CLEANUP: str2mask return code comment: non-zero -> zero. X-Git-Tag: v1.8-dev2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=577d5ac8ae6b6a6860037d62b5089e8ad6bc0599;p=thirdparty%2Fhaproxy.git CLEANUP: str2mask return code comment: non-zero -> zero. --- diff --git a/include/common/standard.h b/include/common/standard.h index 4ba6a950c1..7de8ead284 100644 --- a/include/common/standard.h +++ b/include/common/standard.h @@ -371,7 +371,7 @@ struct sockaddr_storage *str2sa_range(const char *str, /* converts to a struct in_addr containing a network mask. It can be * passed in dotted form (255.255.255.0) or in CIDR form (24). It returns 1 - * if the conversion succeeds otherwise non-zero. + * if the conversion succeeds otherwise zero. */ int str2mask(const char *str, struct in_addr *mask); diff --git a/src/standard.c b/src/standard.c index 6abedb4a2b..95d83e49c2 100644 --- a/src/standard.c +++ b/src/standard.c @@ -1007,7 +1007,7 @@ struct sockaddr_storage *str2sa_range(const char *str, int *port, int *low, int /* converts to a struct in_addr containing a network mask. It can be * passed in dotted form (255.255.255.0) or in CIDR form (24). It returns 1 - * if the conversion succeeds otherwise non-zero. + * if the conversion succeeds otherwise zero. */ int str2mask(const char *str, struct in_addr *mask) {