projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aba9d6
)
snmp_agent: define MIN macro if not defined.
author
Korynkevych, RomanX
<romanx.korynkevych@intel.com>
Wed, 14 Dec 2016 11:11:28 +0000
(11:11 +0000)
committer
Roman Korynkevych
<romanx.korynkevych@intel.com>
Tue, 3 Jan 2017 14:55:32 +0000
(14:55 +0000)
Change-Id: Ic57c14abb8b6b31547e97e6c394b8c3147b1e6b2
Signed-off-by: Korynkevych, RomanX <romanx.korynkevych@intel.com>
src/snmp_agent.c
patch
|
blob
|
history
diff --git
a/src/snmp_agent.c
b/src/snmp_agent.c
index
4b963d0
..
8c7b822
100644
(file)
--- a/
src/snmp_agent.c
+++ b/
src/snmp_agent.c
@@
-40,6
+40,10
@@
#define ERR_BUF_SIZE 1024
#define TYPE_STRING -1
+#ifndef MIN
+#define MIN(x, y) ((x) < (y) ? (x) : (y))
+#endif
+
struct oid_s {
oid oid[MAX_OID_LEN];
size_t oid_len;