Mercurial > pidgin
diff libgaim/protocols/qq/udp_proxy_s5.c @ 14610:473b225e7352
[gaim-migrate @ 17338]
Eliminate a dependency in crypt.c by replacing ntohl() (etc) with g_ntohl() (etc). Also replace those calls in the rest of the QQ prpl, to be consistent.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Huetsch <markhuetsch> |
---|---|
date | Fri, 22 Sep 2006 16:05:09 +0000 |
parents | fd744ac11331 |
children | c039c920e11c |
line wrap: on
line diff
--- a/libgaim/protocols/qq/udp_proxy_s5.c Fri Sep 22 06:45:01 2006 +0000 +++ b/libgaim/protocols/qq/udp_proxy_s5.c Fri Sep 22 16:05:09 2006 +0000 @@ -134,11 +134,11 @@ fcntl(phb->udpsock, F_SETFL, O_NONBLOCK); - port = ntohs(ctlsin.sin_port) + 1; + port = g_ntohs(ctlsin.sin_port) + 1; while (1) { inet_aton("0.0.0.0", &(sin.sin_addr)); sin.sin_family = AF_INET; - sin.sin_port = htons(port); + sin.sin_port = g_htons(port); if (bind(phb->udpsock, (struct sockaddr *) &sin, sizeof(sin)) < 0) { port++; if (port > 65500) {