summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3ffd070)
raw | patch | inline | side by side (parent: 3ffd070)
author | Manuel Luis Sanmartín Rozada <manuel.luis@gmail.com> | |
Sun, 31 May 2015 18:56:49 +0000 (20:56 +0200) | ||
committer | Manuel Luis Sanmartín Rozada <manuel.luis@gmail.com> | |
Sun, 31 May 2015 18:56:49 +0000 (20:56 +0200) |
src/processes.c | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index d549291e063e12d18e7226143651fee91371cce7..059f9eba812613e48411d619e561de76dded81f0 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
}
else if (strcasecmp (c->key, "CollectContextSwitch") == 0)
{
- if ((c->values_num != 1)
- || (c->values[0].type != OCONFIG_TYPE_BOOLEAN))
- {
- ERROR ("processes plugin: `CollectContextSwitch' needs exactly "
- "one boolean argument.");
- continue;
- }
- report_ctx_switch = c->values[0].value.boolean ? 1 : 0;
+ cf_util_get_boolean (c, &report_ctx_switch);
}
else
{