From 577d5ac8ae6b6a6860037d62b5089e8ad6bc0599 Mon Sep 17 00:00:00 2001 From: Jarno Huuskonen Date: Sun, 21 May 2017 17:32:21 +0300 Subject: [PATCH] CLEANUP: str2mask return code comment: non-zero -> zero. --- include/common/standard.h | 2 +- src/standard.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {