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 4ba6a95..7de8ead 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 6abedb4..95d83e4 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)
 {