Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
32761:e96c34989561 | 32762:9c9143e32b6c |
---|---|
599 | 599 |
600 if (h->type == GG_SESSION_DCC_SOCKET) { | 600 if (h->type == GG_SESSION_DCC_SOCKET) { |
601 struct sockaddr_in sin; | 601 struct sockaddr_in sin; |
602 struct gg_dcc *c; | 602 struct gg_dcc *c; |
603 int fd, one = 1; | 603 int fd, one = 1; |
604 unsigned int sin_len = sizeof(sin); | 604 socklen_t sin_len = sizeof(sin); |
605 | 605 |
606 if ((fd = accept(h->fd, (struct sockaddr*) &sin, &sin_len)) == -1) { | 606 if ((fd = accept(h->fd, (struct sockaddr*) &sin, &sin_len)) == -1) { |
607 gg_debug(GG_DEBUG_MISC, "// gg_dcc_watch_fd() can't accept() new connection (errno=%d, %s)\n", errno, strerror(errno)); | 607 gg_debug(GG_DEBUG_MISC, "// gg_dcc_watch_fd() can't accept() new connection (errno=%d, %s)\n", errno, strerror(errno)); |
608 return e; | 608 return e; |
609 } | 609 } |
646 } else { | 646 } else { |
647 struct gg_dcc_tiny_packet tiny; | 647 struct gg_dcc_tiny_packet tiny; |
648 struct gg_dcc_small_packet small; | 648 struct gg_dcc_small_packet small; |
649 struct gg_dcc_big_packet big; | 649 struct gg_dcc_big_packet big; |
650 int size, tmp, res; | 650 int size, tmp, res; |
651 unsigned int utmp, res_size = sizeof(res); | 651 unsigned int utmp; |
652 socklen_t res_size = sizeof(res); | |
652 char buf[1024], ack[] = "UDAG"; | 653 char buf[1024], ack[] = "UDAG"; |
653 | 654 |
654 struct gg_dcc_file_info_packet { | 655 struct gg_dcc_file_info_packet { |
655 struct gg_dcc_big_packet big; | 656 struct gg_dcc_big_packet big; |
656 struct gg_file_info file_info; | 657 struct gg_file_info file_info; |