projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
virt plugin: Split domain memory reporting to appropriate types
[collectd.git]
/
src
/
snmp_agent.c
diff --git
a/src/snmp_agent.c
b/src/snmp_agent.c
index
1c7191f
..
cbd3366
100644
(file)
--- a/
src/snmp_agent.c
+++ b/
src/snmp_agent.c
@@
-29,8
+29,8
@@
#include "collectd.h"
#include "collectd.h"
-#include "
common
.h"
-#include "utils
_avltree
.h"
+#include "
utils/avltree/avltree
.h"
+#include "utils
/common/common
.h"
#include "utils_cache.h"
#include "utils_llist.h"
#include <regex.h>
#include "utils_cache.h"
#include "utils_llist.h"
#include <regex.h>
@@
-2202,8
+2202,7
@@
static int snmp_agent_register_oid(oid_t *oid, Netsnmp_Node_Handler *handler) {
if (c_avl_get(g_agent->registered_oids, (void *)oid, NULL) == 0)
return OID_EXISTS;
else {
if (c_avl_get(g_agent->registered_oids, (void *)oid, NULL) == 0)
return OID_EXISTS;
else {
- oid_t *new_oid = calloc(1, sizeof(*oid));
-
+ oid_t *new_oid = calloc(1, sizeof(*new_oid));
if (new_oid == NULL) {
ERROR(PLUGIN_NAME ": Could not allocate memory to register new OID");
return -ENOMEM;
if (new_oid == NULL) {
ERROR(PLUGIN_NAME ": Could not allocate memory to register new OID");
return -ENOMEM;