projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'hugepages'
[collectd.git]
/
src
/
daemon
/
utils_subst_test.c
diff --git
a/src/daemon/utils_subst_test.c
b/src/daemon/utils_subst_test.c
index
953ccc4
..
c6caba2
100644
(file)
--- a/
src/daemon/utils_subst_test.c
+++ b/
src/daemon/utils_subst_test.c
@@
-26,6
+26,7
@@
#include "common.h" /* for STATIC_ARRAY_SIZE */
#include "collectd.h"
#include "common.h" /* for STATIC_ARRAY_SIZE */
#include "collectd.h"
+
#include "testing.h"
#include "utils_subst.h"
#include "testing.h"
#include "utils_subst.h"
@@
-75,9
+76,8
@@
DEF_TEST(subst)
{"foo bar", 4, 3, "_", NULL}, /* off1 > off2 */
{"foo bar", 3, 4, NULL, NULL}, /* no replacement */
};
{"foo bar", 4, 3, "_", NULL}, /* off1 > off2 */
{"foo bar", 3, 4, NULL, NULL}, /* no replacement */
};
- size_t i;
- for (i = 0; i < STATIC_ARRAY_SIZE (cases); i++) {
+ for (
size_t
i = 0; i < STATIC_ARRAY_SIZE (cases); i++) {
char buffer[16] = "!!!!!!!!!!!!!!!";
if (cases[i].want == NULL) {
char buffer[16] = "!!!!!!!!!!!!!!!";
if (cases[i].want == NULL) {
@@
-108,9
+108,8
@@
DEF_TEST(subst_string)
{"foo bar", "oo", "oo", "foo bar"},
{"sixteen chars", "chars", "characters", "sixteen charact"},
};
{"foo bar", "oo", "oo", "foo bar"},
{"sixteen chars", "chars", "characters", "sixteen charact"},
};
- size_t i;
- for (i = 0; i < STATIC_ARRAY_SIZE (cases); i++) {
+ for (
size_t
i = 0; i < STATIC_ARRAY_SIZE (cases); i++) {
char buffer[16];
if (cases[i].want == NULL) {
char buffer[16];
if (cases[i].want == NULL) {