diff --git a/include/common/standard.h b/include/common/standard.h index 4ba6a950c..7de8ead28 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 6abedb4a2..95d83e49c 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) {