summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7c778ae)
raw | patch | inline | side by side (parent: 7c778ae)
author | Florian Forster <octo@collectd.org> | |
Sat, 21 Oct 2017 19:37:21 +0000 (21:37 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 21 Oct 2017 19:37:21 +0000 (21:37 +0200) |
src/postgresql.c | patch | blob | history |
diff --git a/src/postgresql.c b/src/postgresql.c
index b122dfe5397d53144026b0458c783517e57a2f61..25bedf86dd7441a542c462466d84b1bab6273af2 100644 (file)
--- a/src/postgresql.c
+++ b/src/postgresql.c
status = udb_query_prepare_result(
q, prep_area, host,
- (db->plugin_name != NULL) ? db->plugin_name : "postgresql",
- db->instance, column_names, (size_t)column_num, db->interval);
+ (db->plugin_name != NULL) ? db->plugin_name : "postgresql", db->instance,
+ column_names, (size_t)column_num, db->interval);
if (0 != status) {
log_err("udb_query_prepare_result failed with status %i.", status);
cf_util_get_string(c, &db->password);
else if (0 == strcasecmp(c->key, "Instance"))
cf_util_get_string(c, &db->instance);
- else if (0 == strcasecmp (c->key, "Plugin"))
- cf_util_get_string (c, &db->plugin_name);
+ else if (0 == strcasecmp(c->key, "Plugin"))
+ cf_util_get_string(c, &db->plugin_name);
else if (0 == strcasecmp(c->key, "SSLMode"))
cf_util_get_string(c, &db->sslmode);
else if (0 == strcasecmp(c->key, "KRBSrvName"))