diff options
author | Max <max.suraev@fairwaves.co> | 2015-07-29 20:20:28 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-08-01 23:51:52 +0000 |
commit | 5c06e4045aa3c23e535af09a108360b4a4365c74 (patch) | |
tree | 51971d3a7e15a5c405eba178b04de8fc63f01dc9 /openbsc/src | |
parent | 145e2532f48fa860e5ce58368d813b927a6aec44 (diff) |
use non-vararg functions if possible
Signed-off-by: Max <max.suraev@fairwaves.co>
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/libmsc/db.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/libmsc/db.c b/openbsc/src/libmsc/db.c index 428f99bbc..035202de8 100644 --- a/openbsc/src/libmsc/db.c +++ b/openbsc/src/libmsc/db.c @@ -301,7 +301,7 @@ static int update_db_revision_3(void) dbi_result_free(result); /* Cycle through old messages and convert them to the new format */ - result = dbi_conn_queryf(conn, "SELECT * FROM SMS_3"); + result = dbi_conn_query(conn, "SELECT * FROM SMS_3"); if (!result) { LOGP(DDB, LOGL_ERROR, "Failed fetch messages from the old SMS table (upgrade from rev 3).\n"); @@ -1095,8 +1095,8 @@ int db_subscriber_list_active(void (*cb)(struct gsm_subscriber*,void*), void *cl { dbi_result result; - result = dbi_conn_queryf(conn, - "SELECT * from Subscriber WHERE LAC != 0 AND authorized = 1"); + result = dbi_conn_query(conn, + "SELECT * from Subscriber WHERE LAC != 0 AND authorized = 1"); if (!result) { LOGP(DDB, LOGL_ERROR, "Failed to list active subscribers\n"); return -1; |