diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-25 18:22:37 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-25 18:22:37 +0000 |
commit | bb524e99c9dd9555b0f77275bbb5574d47689fc8 (patch) | |
tree | 699a0e8d7597094186ec21b0a3305b81506a2690 /src/common/util.c | |
parent | 39fe91b9a281a3ec8504bf7933a63918038a9b5a (diff) | |
download | tor-bb524e99c9dd9555b0f77275bbb5574d47689fc8.tar tor-bb524e99c9dd9555b0f77275bbb5574d47689fc8.tar.gz |
r12955@catbus: nickm | 2007-05-25 13:17:30 -0400
First bare stubs of ipv6 work: commit some (untested, hence doublessly broken) implementations of inet_ntop/pton for systems that lack them.
svn:r10326
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index 7ca08363d..889ede100 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1952,7 +1952,7 @@ parse_addr_and_port_range(const char *s, uint32_t *addr_out, * <b>buf</b>. */ int -tor_inet_ntoa(struct in_addr *in, char *buf, size_t buf_len) +tor_inet_ntoa(const struct in_addr *in, char *buf, size_t buf_len) { uint32_t a = ntohl(in->s_addr); return tor_snprintf(buf, buf_len, "%d.%d.%d.%d", |