diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-02-23 20:00:49 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-02-23 20:00:49 (GMT) |
commit | 9cf461e48a4c2c2f43280c36d5f95d43b4627923 (patch) | |
tree | 8d4027aeceb147a672264448aab2b874f17c36e1 | |
parent | 0f4f2c96dbb37a7c1608a39301529456c0a52880 (diff) | |
download | tcl-9cf461e48a4c2c2f43280c36d5f95d43b4627923.zip tcl-9cf461e48a4c2c2f43280c36d5f95d43b4627923.tar.gz tcl-9cf461e48a4c2c2f43280c36d5f95d43b4627923.tar.bz2 |
Bug [3599194]: compat/fake-rfc2553.c is broken
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | compat/fake-rfc2553.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2013-02-23 Jan Nijtmans <nijtmans@users.sf.net> + + * compat/fake-rfc2553.c: [Bug 3599194]: compat/fake-rfc2553.c is + broken. + 2013-02-22 Don Porter <dgp@users.sourceforge.net> * generic/tclAssembly.c: Shift more burden of smart cleanup diff --git a/compat/fake-rfc2553.c b/compat/fake-rfc2553.c index 666144f..3b91041 100644 --- a/compat/fake-rfc2553.c +++ b/compat/fake-rfc2553.c @@ -84,7 +84,7 @@ int fake_getnameinfo(const struct sockaddr *sa, size_t salen, char *host, if (host != NULL) { if (flags & NI_NUMERICHOST) { - int len; + size_t len; Tcl_MutexLock(&netdbMutex); len = strlcpy(host, inet_ntoa(sin->sin_addr), hostlen); Tcl_MutexUnlock(&netdbMutex); @@ -135,7 +135,7 @@ fake_gai_strerror(int err) #ifndef HAVE_FREEADDRINFO void -freeaddrinfo(struct addrinfo *ai) +fake_freeaddrinfo(struct addrinfo *ai) { struct addrinfo *next; @@ -199,7 +199,7 @@ fake_getaddrinfo(const char *hostname, const char *servname, port = strtol(servname, &cp, 10); if (port > 0 && port <= 65535 && *cp == '\0') - port = htons(port); + port = htons((unsigned short)port); else if ((sp = getservbyname(servname, NULL)) != NULL) port = sp->s_port; else |