aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/db_hlr.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/db_hlr.c b/src/db_hlr.c
index 4bccca4..5db2c9e 100644
--- a/src/db_hlr.c
+++ b/src/db_hlr.c
@@ -30,12 +30,13 @@
#define LOGHLR(imsi, level, fmt, args ...) LOGP(DAUC, level, "IMSI='%s': " fmt, imsi, ## args)
-#define SL3_TXT(x, stmt, idx) do { \
- const char *_txt = (const char *) sqlite3_column_text(stmt, idx); \
- if (_txt) \
- strncpy(x, _txt, sizeof(x)); \
- x[sizeof(x)-1] = '\0'; \
- } while (0)
+#define SL3_TXT(x, stmt, idx) \
+ do { \
+ const char *_txt = (const char *) sqlite3_column_text(stmt, idx);\
+ if (_txt) \
+ strncpy(x, _txt, sizeof(x)); \
+ x[sizeof(x)-1] = '\0'; \
+ } while (0)
int db_subscr_get_by_imsi(struct db_context *dbc, const char *imsi,
struct hlr_subscriber *subscr)