use non-vararg functions if possible
Signed-off-by: Max <max.suraev@fairwaves.co>
This commit is contained in:
parent
145e2532f4
commit
5c06e4045a
|
@ -301,7 +301,7 @@ static int update_db_revision_3(void)
|
||||||
dbi_result_free(result);
|
dbi_result_free(result);
|
||||||
|
|
||||||
/* Cycle through old messages and convert them to the new format */
|
/* 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) {
|
if (!result) {
|
||||||
LOGP(DDB, LOGL_ERROR,
|
LOGP(DDB, LOGL_ERROR,
|
||||||
"Failed fetch messages from the old SMS table (upgrade from rev 3).\n");
|
"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;
|
dbi_result result;
|
||||||
|
|
||||||
result = dbi_conn_queryf(conn,
|
result = dbi_conn_query(conn,
|
||||||
"SELECT * from Subscriber WHERE LAC != 0 AND authorized = 1");
|
"SELECT * from Subscriber WHERE LAC != 0 AND authorized = 1");
|
||||||
if (!result) {
|
if (!result) {
|
||||||
LOGP(DDB, LOGL_ERROR, "Failed to list active subscribers\n");
|
LOGP(DDB, LOGL_ERROR, "Failed to list active subscribers\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue