projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small snprintf optimization
[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
d7226b9
..
27bfddf
100644
(file)
--- a/
src/utils_vl_lookup_test.c
+++ b/
src/utils_vl_lookup_test.c
@@
-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;