summaryrefslogtreecommitdiffstats
path: root/tests/sms
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2013-10-08 12:04:42 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-08 14:00:24 +0200
commit73ae7a9ca0b9f2bbf4a6800ed8e9aa9bbd99d597 (patch)
tree2fb7a6dad1e1a45b6adba12356869af8df7272b1 /tests/sms
parent42e0dc0cc3d20b4c222151dc7a9b5e63dabac734 (diff)
tests: Fix warnings
This fixes warnings that are raised by missing includes, missing casts, missing return statements, using printf %lu with uint64_t, and unused symbols.
Diffstat (limited to 'tests/sms')
-rw-r--r--tests/sms/sms_test.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/sms/sms_test.c b/tests/sms/sms_test.c
index 8e10241a..2c9d8d8b 100644
--- a/tests/sms/sms_test.c
+++ b/tests/sms/sms_test.c
@@ -266,18 +266,15 @@ static void test_gen_oa(void)
int main(int argc, char** argv)
{
printf("SMS testing\n");
- struct msgb *msg;
uint8_t i;
uint16_t buffer_size;
uint8_t octet_length;
int octets_written;
uint8_t computed_octet_length;
uint8_t septet_length;
- uint8_t gsm_septet_length;
uint8_t coded[256];
uint8_t tmp[160];
uint8_t septet_data[256];
- uint8_t ud_header[6];
int nchars;
char result[256];
@@ -320,6 +317,7 @@ int main(int argc, char** argv)
/* Test: encode multiple SMS */
int number_of_septets = gsm_septet_encode(septet_data, (const char *) test_multiple_encode[0].input);
+ (void) number_of_septets;
/* SMS part 1 */
memset(tmp, 0x42, sizeof(tmp));