summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: af512f0)
raw | patch | inline | side by side (parent: af512f0)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 5 Mar 2016 13:50:35 +0000 (14:50 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 5 Mar 2016 13:50:35 +0000 (14:50 +0100) |
src/postgresql.c | patch | blob | history |
diff --git a/src/postgresql.c b/src/postgresql.c
index 87a56b7fb7b2fc802174d2abb2423b45b30d342e..79226830cb810c68579852165c889a3b176731e2 100644 (file)
--- a/src/postgresql.c
+++ b/src/postgresql.c
int ref_cnt;
} c_psql_database_t;
-static char *def_queries[] = {
+static const char *const def_queries[] = {
"backends",
"transactions",
"queries",
static PGresult *c_psql_exec_query_params (c_psql_database_t *db,
udb_query_t *q, c_psql_user_data_t *data)
{
- char *params[db->max_params_num];
- char interval[64];
- int i;
+ const char *params[db->max_params_num];
+ char interval[64];
+ int i;
if ((data == NULL) || (data->params_num == 0))
return (c_psql_exec_query_noparams (db, q));