projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check for sysevent plugin init calloc failures
[collectd.git]
/
src
/
utils_vl_lookup_test.c
diff --git
a/src/utils_vl_lookup_test.c
b/src/utils_vl_lookup_test.c
index
8a71a3a
..
27bfddf
100644
(file)
--- a/
src/utils_vl_lookup_test.c
+++ b/
src/utils_vl_lookup_test.c
@@
-29,8
+29,8
@@
#include "testing.h"
#include "utils_vl_lookup.h"
#include "testing.h"
#include "utils_vl_lookup.h"
-static bool expect_new_obj
= 0
;
-static bool have_new_obj
= 0
;
+static bool expect_new_obj;
+static bool have_new_obj;
static lookup_identifier_t last_class_ident;
static lookup_identifier_t last_obj_ident;
static lookup_identifier_t last_class_ident;
static lookup_identifier_t last_obj_ident;
@@
-75,7
+75,7
@@
static void *lookup_class_callback(data_set_t const *ds, value_list_t const *vl,
strncpy(obj->type, vl->type, sizeof(obj->type));
strncpy(obj->type_instance, vl->type_instance, sizeof(obj->type_instance));
strncpy(obj->type, vl->type, sizeof(obj->type));
strncpy(obj->type_instance, vl->type_instance, sizeof(obj->type_instance));
- have_new_obj =
1
;
+ have_new_obj =
true
;
return (void *)obj;
}
return (void *)obj;
}
@@
-120,7
+120,7
@@
static int checked_lookup_search(lookup_t *obj, char const *host,
ds = &ds_test;
expect_new_obj = expect_new;
ds = &ds_test;
expect_new_obj = expect_new;
- have_new_obj =
0
;
+ have_new_obj =
false
;
status = lookup_search(obj, ds, &vl);
return status;
status = lookup_search(obj, ds, &vl);
return status;