From fe1ce97c50e575201fe47d7587251e228edf8fdf Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Wed, 7 Oct 2020 11:10:36 +0200 Subject: #988 remove legacy configuration Use og_server_cfg everywhere. Convert port to string to make it easy for the dbi API since it expects a string. Remove legacy example configuration file. --- src/dbi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dbi.c') diff --git a/src/dbi.c b/src/dbi.c index 3c4ae51..968b00e 100644 --- a/src/dbi.c +++ b/src/dbi.c @@ -30,11 +30,11 @@ struct og_dbi *og_dbi_open(struct og_dbi_config *config) return NULL; } - dbi_conn_set_option(dbi->conn, "host", config->host); + dbi_conn_set_option(dbi->conn, "host", config->ip); dbi_conn_set_option(dbi->conn, "port", config->port); dbi_conn_set_option(dbi->conn, "username", config->user); - dbi_conn_set_option(dbi->conn, "password", config->passwd); - dbi_conn_set_option(dbi->conn, "dbname", config->database); + dbi_conn_set_option(dbi->conn, "password", config->pass); + dbi_conn_set_option(dbi->conn, "dbname", config->name); dbi_conn_set_option(dbi->conn, "encoding", "UTF-8"); if (dbi_conn_connect(dbi->conn) < 0) { -- cgit v1.2.3-18-g5258