projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c778ae
)
clang-format src/postgresql.c
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
b122dfe
..
25bedf8
100644
(file)
--- a/
src/postgresql.c
+++ b/
src/postgresql.c
@@
-547,8
+547,8
@@
static int c_psql_exec_query(c_psql_database_t *db, udb_query_t *q,
status = udb_query_prepare_result(
q, prep_area, host,
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);
if (0 != status) {
log_err("udb_query_prepare_result failed with status %i.", status);
@@
-1147,8
+1147,8
@@
static int c_psql_config_database(oconfig_item_t *ci) {
cf_util_get_string(c, &db->password);
else if (0 == strcasecmp(c->key, "Instance"))
cf_util_get_string(c, &db->instance);
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"))
else if (0 == strcasecmp(c->key, "SSLMode"))
cf_util_get_string(c, &db->sslmode);
else if (0 == strcasecmp(c->key, "KRBSrvName"))