diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-28 14:55:25 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-28 14:55:25 +0100 |
commit | 49d4f24f8d031a9301676196bd6a17ea3e54cb62 (patch) | |
tree | 3bb4e1a73fff39eaf68839bba723be63f3ace6ad /src/mint/taler-mint-dbinit.c | |
parent | ea3fac606311d1c14362d387960a4913182b629e (diff) |
misc cleanup, moving TALER_MINT_config_load to libtalerutil
Diffstat (limited to 'src/mint/taler-mint-dbinit.c')
-rw-r--r-- | src/mint/taler-mint-dbinit.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mint/taler-mint-dbinit.c b/src/mint/taler-mint-dbinit.c index d877f62c6..3d080b523 100644 --- a/src/mint/taler-mint-dbinit.c +++ b/src/mint/taler-mint-dbinit.c @@ -95,7 +95,7 @@ TALER_MINT_init_withdraw_tables (PGconn *conn) } PQclear (result); - result = PQexec (conn, + result = PQexec (conn, "CREATE TABLE IF NOT EXISTS refresh_sessions " "(" " session_pub BYTEA PRIMARY KEY CHECK (length(session_pub) = 32)" @@ -113,7 +113,7 @@ TALER_MINT_init_withdraw_tables (PGconn *conn) } PQclear (result); - result = PQexec (conn, + result = PQexec (conn, "CREATE TABLE IF NOT EXISTS refresh_order " "( " " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub)" @@ -130,7 +130,7 @@ TALER_MINT_init_withdraw_tables (PGconn *conn) PQclear (result); - result = PQexec (conn, + result = PQexec (conn, "CREATE TABLE IF NOT EXISTS refresh_commit_link" "(" " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub)" @@ -150,7 +150,7 @@ TALER_MINT_init_withdraw_tables (PGconn *conn) } PQclear (result); - result = PQexec (conn, + result = PQexec (conn, "CREATE TABLE IF NOT EXISTS refresh_commit_coin" "(" " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub) " @@ -169,7 +169,7 @@ TALER_MINT_init_withdraw_tables (PGconn *conn) } PQclear (result); - result = PQexec (conn, + result = PQexec (conn, "CREATE TABLE IF NOT EXISTS refresh_melt" "(" " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub) " @@ -185,7 +185,7 @@ TALER_MINT_init_withdraw_tables (PGconn *conn) } PQclear (result); - result = PQexec (conn, + result = PQexec (conn, "CREATE TABLE IF NOT EXISTS refresh_collectable" "(" " session_pub BYTEA NOT NULL REFERENCES refresh_sessions (session_pub) " @@ -245,7 +245,7 @@ main (int argc, char *const *argv) GNUNET_GETOPT_OPTION_END }; - if (GNUNET_GETOPT_run ("taler-mint-serve", options, argc, argv) < 0) + if (GNUNET_GETOPT_run ("taler-mint-serve", options, argc, argv) < 0) return 1; GNUNET_assert (GNUNET_OK == GNUNET_log_setup ("taler-mint-dbinit", "INFO", NULL)); @@ -256,7 +256,7 @@ main (int argc, char *const *argv) return 1; } - cfg = TALER_MINT_config_load (mint_base_dir); + cfg = TALER_config_load (mint_base_dir); if (NULL == cfg) { fprintf (stderr, "Can't load mint configuration.\n"); @@ -282,4 +282,3 @@ main (int argc, char *const *argv) return 0; } - |