aboutsummaryrefslogtreecommitdiffstats
path: root/src/db_auc.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-10-06 03:09:34 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-10-10 02:38:24 +0200
commit4bde949b34a8dc53734373e57b5e36955775b81d (patch)
tree695f4f17a26068d761e4d71bd21477a0ef0d7d46 /src/db_auc.c
parent32c38f09e5fda3e723cdbb0041c0703a3c31ef4d (diff)
cosmetic: prepend DB_STMT_ to enum stmt_idx entries
There are upcoming additions, and some seem too general without a proper common prefix in the identifiers, like 'CREATE'. Change-Id: I51b677db31a1ebbbc45dc7925074de7493fbde1f
Diffstat (limited to 'src/db_auc.c')
-rw-r--r--src/db_auc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db_auc.c b/src/db_auc.c
index f532b83..07039d4 100644
--- a/src/db_auc.c
+++ b/src/db_auc.c
@@ -36,7 +36,7 @@
int db_update_sqn(struct db_context *dbc, uint64_t id,
uint64_t new_sqn)
{
- sqlite3_stmt *stmt = dbc->stmt[AUC_UPD_SQN];
+ sqlite3_stmt *stmt = dbc->stmt[DB_STMT_AUC_UPD_SQN];
int rc;
/* bind new SQN and subscriber ID */
@@ -79,7 +79,7 @@ int db_get_auth_data(struct db_context *dbc, const char *imsi,
struct osmo_sub_auth_data *aud3g,
uint64_t *subscr_id)
{
- sqlite3_stmt *stmt = dbc->stmt[AUC_BY_IMSI];
+ sqlite3_stmt *stmt = dbc->stmt[DB_STMT_AUC_BY_IMSI];
int ret = 0;
int rc;