Mercurial > pidgin.yaz
diff libpurple/protocols/gg/lib/dcc.c @ 32762:9c9143e32b6c
Gadu-Gadu: fix win32 warnings, patch from upstream.
author | tomkiewicz@cpw.pidgin.im |
---|---|
date | Mon, 17 Oct 2011 20:09:23 +0000 |
parents | 3a90a59ddea2 |
children | ef01f180114b |
line wrap: on
line diff
--- a/libpurple/protocols/gg/lib/dcc.c Sun Oct 16 08:20:07 2011 +0000 +++ b/libpurple/protocols/gg/lib/dcc.c Mon Oct 17 20:09:23 2011 +0000 @@ -601,7 +601,7 @@ struct sockaddr_in sin; struct gg_dcc *c; int fd, one = 1; - unsigned int sin_len = sizeof(sin); + socklen_t sin_len = sizeof(sin); if ((fd = accept(h->fd, (struct sockaddr*) &sin, &sin_len)) == -1) { gg_debug(GG_DEBUG_MISC, "// gg_dcc_watch_fd() can't accept() new connection (errno=%d, %s)\n", errno, strerror(errno)); @@ -648,7 +648,8 @@ struct gg_dcc_small_packet small; struct gg_dcc_big_packet big; int size, tmp, res; - unsigned int utmp, res_size = sizeof(res); + unsigned int utmp; + socklen_t res_size = sizeof(res); char buf[1024], ack[] = "UDAG"; struct gg_dcc_file_info_packet {