projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2772 from rubenk/static-initializers
[collectd.git]
/
src
/
snmp_agent.c
diff --git
a/src/snmp_agent.c
b/src/snmp_agent.c
index
b213adb
..
48d9f86
100644
(file)
--- a/
src/snmp_agent.c
+++ b/
src/snmp_agent.c
@@
-71,7
+71,7
@@
struct data_definition_s {
char *type;
char *type_instance;
const table_definition_t *table;
char *type;
char *type_instance;
const table_definition_t *table;
-
_B
ool is_instance;
+
b
ool is_instance;
oid_t *oids;
size_t oids_len;
double scale;
oid_t *oids;
size_t oids_len;
double scale;
@@
-90,7
+90,7
@@
struct snmp_agent_ctx_s {
};
typedef struct snmp_agent_ctx_s snmp_agent_ctx_t;
};
typedef struct snmp_agent_ctx_s snmp_agent_ctx_t;
-static snmp_agent_ctx_t *g_agent
= NULL
;
+static snmp_agent_ctx_t *g_agent;
#define CHECK_DD_TYPE(_dd, _p, _pi, _t, _ti) \
(_dd->plugin ? !strcmp(_dd->plugin, _p) : 0) && \
#define CHECK_DD_TYPE(_dd, _p, _pi, _t, _ti) \
(_dd->plugin ? !strcmp(_dd->plugin, _p) : 0) && \