summaryrefslogtreecommitdiff
path: root/lib/socks.c
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2012-09-14 00:44:16 +0200
committerMarc Hoersken <info@marc-hoersken.de>2012-09-14 00:44:16 +0200
commit8a2be299f4c91a87014b35bcf6b75f91ab477262 (patch)
tree38661c354d9607beadfd9f01b6a6fa8478f5bcb9 /lib/socks.c
parentf73a27cadc55f97704a9d52ff4c67afda5d89162 (diff)
downloadcurl-8a2be299f4c91a87014b35bcf6b75f91ab477262.tar.gz
checksrc: Fixed line length and comment indentation
Diffstat (limited to 'lib/socks.c')
-rw-r--r--lib/socks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/socks.c b/lib/socks.c
index e3a53c6f4..5d5ca48a9 100644
--- a/lib/socks.c
+++ b/lib/socks.c
@@ -562,7 +562,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
if(!socks5_resolve_local) {
socksreq[len++] = 3; /* ATYP: domain name = 3 */
socksreq[len++] = (char) hostname_len; /* address length */
- memcpy(&socksreq[len], hostname, hostname_len); /* address bytes w/o NULL */
+ memcpy(&socksreq[len], hostname, hostname_len); /* address str w/o NULL */
len += hostname_len;
}
else {
@@ -592,7 +592,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
int i;
if(hp->ai_family == AF_INET) {
- socksreq[len++] = 1; /* IPv4 = 1 */
+ socksreq[len++] = 1; /* ATYP: IPv4 = 1 */
saddr_in = (struct sockaddr_in*)hp->ai_addr;
for(i = 0; i < 4; i++) {
@@ -601,7 +601,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
}
}
else if(hp->ai_family == AF_INET6) {
- socksreq[len++] = 4; /* IPv6 = 4 */
+ socksreq[len++] = 4; /* ATYP: IPv6 = 4 */
saddr_in6 = (struct sockaddr_in6*)hp->ai_addr;
for(i = 0; i < 16; i++) {