]> granicus.if.org Git - libevent/commitdiff
evutil: fix a typo of comment
authortim-le <tim-le@users.noreply.github.com>
Sun, 5 Mar 2017 15:10:27 +0000 (23:10 +0800)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sun, 5 Mar 2017 15:14:02 +0000 (18:14 +0300)
Fixes: #481
Fixes: #480
evutil.c

index 1e8ef7bd32801c4218e97fe75e54d00df07c342e..4dd4a2e1c95cc2a78ba4ffaea70ba9e6a03d0808 100644 (file)
--- a/evutil.c
+++ b/evutil.c
@@ -1053,7 +1053,7 @@ evutil_getaddrinfo_common_(const char *nodename, const char *servname,
                struct sockaddr_in sin;
                memset(&sin, 0, sizeof(sin));
                if (1==evutil_inet_pton(AF_INET, nodename, &sin.sin_addr)) {
-                       /* Got an ipv6 address. */
+                       /* Got an ipv4 address. */
                        sin.sin_family = AF_INET;
                        sin.sin_port = htons(port);
                        *res = evutil_new_addrinfo_((struct sockaddr*)&sin,