projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parse_identifier: Make hostname optional, if a default has been specified.
[collectd.git]
/
src
/
utils_cmd_flush.c
diff --git
a/src/utils_cmd_flush.c
b/src/utils_cmd_flush.c
index
cfd6a48
..
7e26be7
100644
(file)
--- a/
src/utils_cmd_flush.c
+++ b/
src/utils_cmd_flush.c
@@
-82,7
+82,8
@@
cmd_status_t cmd_parse_flush (size_t argc, char **argv,
ret_flush->identifiers_num++;
if (parse_identifier (opt_value,
&id->host, &id->plugin, &id->plugin_instance,
ret_flush->identifiers_num++;
if (parse_identifier (opt_value,
&id->host, &id->plugin, &id->plugin_instance,
- &id->type, &id->type_instance) != 0)
+ &id->type, &id->type_instance,
+ NULL) != 0)
{
cmd_error (CMD_PARSE_ERROR, err,
"Invalid identifier `%s'.", opt_value);
{
cmd_error (CMD_PARSE_ERROR, err,
"Invalid identifier `%s'.", opt_value);