Mercurial > pidgin.yaz
changeset 8251:86b8d8b4287e
[gaim-migrate @ 8974]
Really I just like having the power to send out this
commit emails.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 13 Feb 2004 05:56:17 +0000 |
parents | b248c1f4efbd |
children | 10a41e67a800 |
files | src/network.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network.c Fri Feb 13 05:37:12 2004 +0000 +++ b/src/network.c Fri Feb 13 05:56:17 2004 +0000 @@ -119,7 +119,7 @@ return gaim_network_get_local_system_ip(fd); } -static int gaim_network_do_listen(short portnum) +static int gaim_network_do_listen(unsigned short port) { #if HAVE_GETADDRINFO int listenfd; @@ -127,7 +127,7 @@ struct addrinfo hints, *res, *ressave; char serv[5]; - snprintf(serv, sizeof(serv), "%d", portnum); + snprintf(serv, sizeof(serv), "%d", port); memset(&hints, 0, sizeof(struct addrinfo)); hints.ai_flags = AI_PASSIVE; hints.ai_family = AF_UNSPEC; @@ -169,7 +169,7 @@ memset(&sockin, 0, sizeof(struct sockaddr_in)); sockin.sin_family = AF_INET; - sockin.sin_port = htons(portnum); + sockin.sin_port = htons(port); if (bind(listenfd, (struct sockaddr *)&sockin, sizeof(struct sockaddr_in)) != 0) { gaim_debug_warning("network", "bind: %s\n", strerror(errno));