libpurple/protocols/gg/lib/dcc.c

branch
release-2.x.y
changeset 33709
84fb3f1d401b
parent 31826
0f6ab56fbf9d
child 33710
0d7ead568881
child 35617
c9069e0e3c36
equal deleted inserted replaced
33708:f4d13f392134 33709:84fb3f1d401b
422 422
423 if (port == 0 || port == (uint16_t)-1) /* XXX: port is unsigned */ 423 if (port == 0 || port == (uint16_t)-1) /* XXX: port is unsigned */
424 port = GG_DEFAULT_DCC_PORT; 424 port = GG_DEFAULT_DCC_PORT;
425 425
426 while (!bound) { 426 while (!bound) {
427 memset(&sin, 0, sizeof(sin));
427 sin.sin_family = AF_INET; 428 sin.sin_family = AF_INET;
428 sin.sin_addr.s_addr = INADDR_ANY; 429 sin.sin_addr.s_addr = INADDR_ANY;
429 sin.sin_port = htons(port); 430 sin.sin_port = htons(port);
430 431
431 gg_debug(GG_DEBUG_MISC, "// gg_create_dcc_socket() trying port %d\n", port); 432 gg_debug(GG_DEBUG_MISC, "// gg_create_dcc_socket() trying port %d\n", port);

mercurial