Skip to content

Commit

Permalink
lib: Fixed net_str2port*() comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Oct 26, 2016
1 parent f65486a commit 243c182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/net.h
Expand Up @@ -144,9 +144,9 @@ int net_getunixcred(int fd, struct net_unix_cred *cred_r);
const char *net_ip2addr(const struct ip_addr *ip);
/* char* -> struct ip_addr translation. */
int net_addr2ip(const char *addr, struct ip_addr *ip);
/* char* -> net_port_t translation */
/* char* -> in_port_t translation */
int net_str2port(const char *str, in_port_t *port_r);
/* char* -> net_port_t translation (allows port zero) */
/* char* -> in_port_t translation (allows port zero) */
int net_str2port_zero(const char *str, in_port_t *port_r);
/* Parse "host", "host:port", "IPv4", "IPv4:port", "IPv6", "[IPv6]" or
"[IPv6]:port" to its host and port components. [IPv6] address is returned
Expand Down

0 comments on commit 243c182

Please sign in to comment.