diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2019-08-07 03:16:21 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2019-08-21 16:41:14 +0200 |
commit | 3923b6e309e883c7b5d09ea9f7244a35e9fe9025 (patch) | |
tree | 6a08bd2d3e1cb3c89e2f51c3a14f0551c759444f /lib/prefix.c | |
parent | lib: switch str2prefix_ipv4() to use inet_pton() (diff) | |
download | frr-3923b6e309e883c7b5d09ea9f7244a35e9fe9025.tar.xz frr-3923b6e309e883c7b5d09ea9f7244a35e9fe9025.zip |
lib: fix a couple more doc comments
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r-- | lib/prefix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/prefix.c b/lib/prefix.c index 4780801bd..ad8dea273 100644 --- a/lib/prefix.c +++ b/lib/prefix.c @@ -853,7 +853,7 @@ void prefix_ipv4_free(struct prefix_ipv4 *p) prefix_free((struct prefix *)p); } -/* When string format is invalid return 0. */ +/* If given string is valid return 1 else return 0 */ int str2prefix_ipv4(const char *str, struct prefix_ipv4 *p) { int ret; @@ -1025,7 +1025,7 @@ void prefix_ipv6_free(struct prefix_ipv6 *p) prefix_free((struct prefix *)p); } -/* If given string is valid return pin6 else return NULL */ +/* If given string is valid return 1 else return 0 */ int str2prefix_ipv6(const char *str, struct prefix_ipv6 *p) { char *pnt; |