Loading ares/ares_process.c +7 −5 Original line number Diff line number Diff line Loading @@ -232,7 +232,8 @@ static void write_tcp_data(ares_channel channel, fd_set *write_fds, time_t now) static void read_tcp_data(ares_channel channel, fd_set *read_fds, time_t now) { struct server_state *server; int i, count; int i; ssize_t count; for (i = 0; i < channel->nservers; i++) { Loading @@ -257,7 +258,7 @@ static void read_tcp_data(ares_channel channel, fd_set *read_fds, time_t now) continue; } server->tcp_lenbuf_pos += count; server->tcp_lenbuf_pos += (int)count; if (server->tcp_lenbuf_pos == 2) { /* We finished reading the length word. Decode the Loading @@ -284,7 +285,7 @@ static void read_tcp_data(ares_channel channel, fd_set *read_fds, time_t now) continue; } server->tcp_buffer_pos += count; server->tcp_buffer_pos += (int)count; if (server->tcp_buffer_pos == server->tcp_length) { /* We finished reading this answer; process it and Loading @@ -306,7 +307,8 @@ static void read_udp_packets(ares_channel channel, fd_set *read_fds, time_t now) { struct server_state *server; int i, count; int i; ssize_t count; unsigned char buf[PACKETSZ + 1]; for (i = 0; i < channel->nservers; i++) Loading @@ -324,7 +326,7 @@ static void read_udp_packets(ares_channel channel, fd_set *read_fds, else if (count <= 0) handle_error(channel, i, now); process_answer(channel, buf, count, i, 0, now); process_answer(channel, buf, (int)count, i, 0, now); } } Loading tests/server/tftpd.c +2 −2 Original line number Diff line number Diff line Loading @@ -814,7 +814,7 @@ static void recvtftp(struct testcase *test, struct formats *pf) struct tftphdr *dp; struct tftphdr *ap; /* ack buffer */ unsigned short block = 0; int n, size; ssize_t n, size; #if defined(HAVE_ALARM) && defined(SIGALRM) mysignal(SIGALRM, timer); #endif Loading Loading @@ -861,7 +861,7 @@ send_ack: } } size = writeit(test, &dp, n - 4, pf->f_convert); size = writeit(test, &dp, (int)(n - 4), pf->f_convert); if (size != (n-4)) { /* ahem */ if (size < 0) nak(errno + 100); Loading Loading
ares/ares_process.c +7 −5 Original line number Diff line number Diff line Loading @@ -232,7 +232,8 @@ static void write_tcp_data(ares_channel channel, fd_set *write_fds, time_t now) static void read_tcp_data(ares_channel channel, fd_set *read_fds, time_t now) { struct server_state *server; int i, count; int i; ssize_t count; for (i = 0; i < channel->nservers; i++) { Loading @@ -257,7 +258,7 @@ static void read_tcp_data(ares_channel channel, fd_set *read_fds, time_t now) continue; } server->tcp_lenbuf_pos += count; server->tcp_lenbuf_pos += (int)count; if (server->tcp_lenbuf_pos == 2) { /* We finished reading the length word. Decode the Loading @@ -284,7 +285,7 @@ static void read_tcp_data(ares_channel channel, fd_set *read_fds, time_t now) continue; } server->tcp_buffer_pos += count; server->tcp_buffer_pos += (int)count; if (server->tcp_buffer_pos == server->tcp_length) { /* We finished reading this answer; process it and Loading @@ -306,7 +307,8 @@ static void read_udp_packets(ares_channel channel, fd_set *read_fds, time_t now) { struct server_state *server; int i, count; int i; ssize_t count; unsigned char buf[PACKETSZ + 1]; for (i = 0; i < channel->nservers; i++) Loading @@ -324,7 +326,7 @@ static void read_udp_packets(ares_channel channel, fd_set *read_fds, else if (count <= 0) handle_error(channel, i, now); process_answer(channel, buf, count, i, 0, now); process_answer(channel, buf, (int)count, i, 0, now); } } Loading
tests/server/tftpd.c +2 −2 Original line number Diff line number Diff line Loading @@ -814,7 +814,7 @@ static void recvtftp(struct testcase *test, struct formats *pf) struct tftphdr *dp; struct tftphdr *ap; /* ack buffer */ unsigned short block = 0; int n, size; ssize_t n, size; #if defined(HAVE_ALARM) && defined(SIGALRM) mysignal(SIGALRM, timer); #endif Loading Loading @@ -861,7 +861,7 @@ send_ack: } } size = writeit(test, &dp, n - 4, pf->f_convert); size = writeit(test, &dp, (int)(n - 4), pf->f_convert); if (size != (n-4)) { /* ahem */ if (size < 0) nak(errno + 100); Loading