#include "utils/cmds/getval.h"
#include "utils/cmds/listval.h"
#include "utils/cmds/parse_option.h"
-#include "utils/cmds/putval.h"
#include "utils/cmds/putmetric.h"
+#include "utils/cmds/putval.h"
#include "utils/common/common.h"
#include <stdbool.h>
cmd_parse_putval(argc - 1, argv + 1, &ret_cmd->cmd.putval, opts, err);
} else if (strcasecmp("PUTMETRIC", command) == 0) {
ret_cmd->type = CMD_PUTMETRIC;
- status =
- cmd_parse_putmetric(argc - 1, argv + 1, &ret_cmd->cmd.putmetric, opts, err);
+ status = cmd_parse_putmetric(argc - 1, argv + 1, &ret_cmd->cmd.putmetric,
+ opts, err);
} else {
ret_cmd->type = CMD_UNKNOWN;
cmd_error(CMD_UNKNOWN_COMMAND, err, "Unknown command `%s'.", command);
? "GETVAL" \
: ((type) == CMD_LISTVAL) \
? "LISTVAL" \
- : ((type) == CMD_PUTVAL) ? "PUTVAL" \
- : ((type) == CMD_PUTMETRIC) ? "PUTMETRIC" : "UNKNOWN"
+ : ((type) == CMD_PUTVAL) \
+ ? "PUTVAL" \
+ : ((type) == CMD_PUTMETRIC) ? "PUTMETRIC" : "UNKNOWN"
typedef struct {
double timeout;
value_list_t vl = VALUE_LIST_INIT;
if ((opts != NULL) && (opts->identifier_default_host != NULL)) {
- sstrncpy(vl.host, opts->identifier_default_host, sizeof(vl.host));
+ sstrncpy(vl.host, opts->identifier_default_host, sizeof(vl.host));
}
char const *identifier = argv[0];
int status = parse_identifier_vl(identifier, &vl);
if (status != 0) {
DEBUG("cmd_handle_putval: Cannot parse identifier `%s'.", identifier);
- cmd_error(CMD_PARSE_ERROR, errhndl, "parse_identifier_vl(\"%s\"): %s", identifier, STRERROR(status));
+ cmd_error(CMD_PARSE_ERROR, errhndl, "parse_identifier_vl(\"%s\"): %s",
+ identifier, STRERROR(status));
return CMD_PARSE_ERROR;
}