]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: str2mask return code comment: non-zero -> zero.
authorJarno Huuskonen <jarno.huuskonen@uef.fi>
Sun, 21 May 2017 14:32:21 +0000 (17:32 +0300)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Jun 2017 13:43:46 +0000 (15:43 +0200)
include/common/standard.h
src/standard.c

index 4ba6a950c1765337545238d4c1d899c5f7307758..7de8ead2848f05dcff71bfd136172c26f1b6c682 100644 (file)
@@ -371,7 +371,7 @@ struct sockaddr_storage *str2sa_range(const char *str,
 
 /* converts <str> 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);
 
index 6abedb4a2b6f26043165388f90d2658cffd53865..95d83e49c26927134a8bd8a6001461731e08269d 100644 (file)
@@ -1007,7 +1007,7 @@ struct sockaddr_storage *str2sa_range(const char *str, int *port, int *low, int
 
 /* converts <str> 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)
 {