aboutsummaryrefslogtreecommitdiffstats
path: root/include/snmp_mtp.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-03-11 17:19:18 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-03-18 19:03:44 +0100
commitd93c84f96e7b7e652ac5a937c1f27df0913fca18 (patch)
tree4c91465c51b135410dcda6f4d76a12f6ba43e426 /include/snmp_mtp.h
parente6caed12caa117de4d28111d9302d542963b1836 (diff)
misc: Address warnings coming from clang
* Include stdlib.h before the snmp headers to have a free declaration * Use sprintf(dest, "%s", str) to avoid format string attacks * Avoid bogus assignment. This pattern was used for marking something as unused in the past.
Diffstat (limited to 'include/snmp_mtp.h')
-rw-r--r--include/snmp_mtp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/snmp_mtp.h b/include/snmp_mtp.h
index 0c3075f..bff5507 100644
--- a/include/snmp_mtp.h
+++ b/include/snmp_mtp.h
@@ -20,6 +20,8 @@
#ifndef snmp_mtp_h
#define snmp_mtp_h
+#include <stdlib.h>
+
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/utilities.h>
#include <net-snmp/net-snmp-includes.h>