From 021f4b4068726222957f7ce916e74c46d2f7f093 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 2 Feb 2009 16:57:30 +0000 Subject: [PATCH] fix mini_snmpd compile on avr32 SVN-Revision: 14361 --- net/mini_snmpd/patches/102-compile_fix.patch | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 net/mini_snmpd/patches/102-compile_fix.patch diff --git a/net/mini_snmpd/patches/102-compile_fix.patch b/net/mini_snmpd/patches/102-compile_fix.patch new file mode 100644 index 0000000000..f6ece3e9c0 --- /dev/null +++ b/net/mini_snmpd/patches/102-compile_fix.patch @@ -0,0 +1,31 @@ +--- a/mini_snmpd.c ++++ b/mini_snmpd.c +@@ -134,7 +134,7 @@ + } else if (rv != g_udp_client.size) { + lprintf(LOG_WARNING, "could not send packet to UDP client %s:%d: " + "only %d of %d bytes written\n", inet_ntoa(sockaddr.sin_addr), +- sockaddr.sin_port, rv, g_udp_client.size); ++ sockaddr.sin_port, rv, (int) g_udp_client.size); + } + #ifdef DEBUG + dump_packet(&g_udp_client); +@@ -211,7 +211,7 @@ + } else if (rv != client->size) { + lprintf(LOG_WARNING, "could not send packet to TCP client %s:%d: " + "only %d of %d bytes written\n", inet_ntoa(sockaddr.sin_addr), +- sockaddr.sin_port, rv, client->size); ++ sockaddr.sin_port, rv, (int) client->size); + close(client->sockfd); + client->sockfd = -1; + return; +--- a/utils.c ++++ b/utils.c +@@ -106,7 +106,7 @@ + } + } + lprintf(LOG_DEBUG, "%s %u bytes %s %s:%d (%s)\n", +- client->outgoing ? "transmitted" : "received", client->size, ++ client->outgoing ? "transmitted" : "received", (int) client->size, + client->outgoing ? "to" : "from", inet_ntoa(client_addr), + ntohs(client->port), buffer); + } -- 2.30.2