mini_snmpd: Fix parallel build
[openwrt/svn-archive/archive.git] / net / mini_snmpd / patches / 102-compile_fix.patch
1 --- a/mini_snmpd.c
2 +++ b/mini_snmpd.c
3 @@ -134,7 +134,7 @@ static void handle_udp_client(void)
4 } else if (rv != g_udp_client.size) {
5 lprintf(LOG_WARNING, "could not send packet to UDP client %s:%d: "
6 "only %d of %d bytes written\n", inet_ntoa(sockaddr.sin_addr),
7 - sockaddr.sin_port, rv, g_udp_client.size);
8 + sockaddr.sin_port, rv, (int) g_udp_client.size);
9 }
10 #ifdef DEBUG
11 dump_packet(&g_udp_client);
12 @@ -211,7 +211,7 @@ static void handle_tcp_client_write(clie
13 } else if (rv != client->size) {
14 lprintf(LOG_WARNING, "could not send packet to TCP client %s:%d: "
15 "only %d of %d bytes written\n", inet_ntoa(sockaddr.sin_addr),
16 - sockaddr.sin_port, rv, client->size);
17 + sockaddr.sin_port, rv, (int) client->size);
18 close(client->sockfd);
19 client->sockfd = -1;
20 return;
21 --- a/utils.c
22 +++ b/utils.c
23 @@ -106,7 +106,7 @@ void dump_packet(const client_t *client)
24 }
25 }
26 lprintf(LOG_DEBUG, "%s %u bytes %s %s:%d (%s)\n",
27 - client->outgoing ? "transmitted" : "received", client->size,
28 + client->outgoing ? "transmitted" : "received", (int) client->size,
29 client->outgoing ? "to" : "from", inet_ntoa(client_addr),
30 ntohs(client->port), buffer);
31 }