Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
14609:36ededd6e064 | 14610:473b225e7352 |
---|---|
132 return; | 132 return; |
133 } | 133 } |
134 | 134 |
135 fcntl(phb->udpsock, F_SETFL, O_NONBLOCK); | 135 fcntl(phb->udpsock, F_SETFL, O_NONBLOCK); |
136 | 136 |
137 port = ntohs(ctlsin.sin_port) + 1; | 137 port = g_ntohs(ctlsin.sin_port) + 1; |
138 while (1) { | 138 while (1) { |
139 inet_aton("0.0.0.0", &(sin.sin_addr)); | 139 inet_aton("0.0.0.0", &(sin.sin_addr)); |
140 sin.sin_family = AF_INET; | 140 sin.sin_family = AF_INET; |
141 sin.sin_port = htons(port); | 141 sin.sin_port = g_htons(port); |
142 if (bind(phb->udpsock, (struct sockaddr *) &sin, sizeof(sin)) < 0) { | 142 if (bind(phb->udpsock, (struct sockaddr *) &sin, sizeof(sin)) < 0) { |
143 port++; | 143 port++; |
144 if (port > 65500) { | 144 if (port > 65500) { |
145 close(source); | 145 close(source); |
146 g_free(phb->host); | 146 g_free(phb->host); |