diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-11-30 02:46:53 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-11-30 22:46:15 +0100 |
commit | 7b61ffe69ba13b276ff61d708f14fa053d3074fb (patch) | |
tree | c8c73b9bcb7b8caa732796ca66057842b9c170e3 /tests | |
parent | 8b6e536007815a0337fbae70917702c8e06b4bb5 (diff) |
GSM_EXTENSION_LENGTH -> VLR_MSISDN_LENGTH
gsm_subscriber.h contains some legacy cruft, part of which is that the VLR's
max MSISDN length should rather be defined in vlr.h. Same for GSM_NAME_LENGTH
-> VLR_NAME_LENGTH.
Adjust some sms_queue stuff that anyway includes vlr.h already.
Drop gsm_subscriber.h from vlr.h.
Add other (more concise) includes that thus become necessary, since the include
chain vlr.h->gsm_subscriber.h->gsm_data.h is no longer in place.
Change-Id: Iab5c507ec04fc2884187cf946f6ae2240e4a31f8
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sms_queue/sms_queue_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/sms_queue/sms_queue_test.c b/tests/sms_queue/sms_queue_test.c index 6ce0b88b0..68819b960 100644 --- a/tests/sms_queue/sms_queue_test.c +++ b/tests/sms_queue/sms_queue_test.c @@ -25,6 +25,7 @@ #include <osmocom/msc/debug.h> #include <osmocom/msc/vlr.h> +#include <osmocom/msc/gsm_data.h> static void *talloc_ctx = NULL; @@ -129,7 +130,7 @@ void show_fake_sms_db() static void test_next_sms() { int i; - char last_msisdn[GSM_EXTENSION_LENGTH+1] = ""; + char last_msisdn[VLR_MSISDN_LENGTH+1] = ""; printf("Testing smsq_take_next_sms()\n"); |