diff options
author | Martin Hauke <mardnh@gmx.de> | 2020-02-15 23:01:39 +0100 |
---|---|---|
committer | Martin Hauke <mardnh@gmx.de> | 2020-02-15 23:01:39 +0100 |
commit | c593da5d454081fc83a135d4ba77728f1cb2ac66 (patch) | |
tree | 07e3f2b0907f4f2c0b2b346928037994051eeab4 | |
parent | 67d32a0386b1c0bfb7a12f63b5bb475a08010e80 (diff) |
tests: Missing return statement
Change-Id: I4fae9f84a83af280846b07eaa139ff4a05784a2e
-rw-r--r-- | src/tests/hnb-test.c | 2 | ||||
-rw-r--r-- | src/tests/test_common.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/hnb-test.c b/src/tests/hnb-test.c index 446a14a..27959ec 100644 --- a/src/tests/hnb-test.c +++ b/src/tests/hnb-test.c @@ -326,7 +326,7 @@ static int hnb_test_nas_rx_auth_req(struct hnb_test *hnb, struct gsm48_hdr *gh, if (len < sizeof(*ar)) { printf("GSM48 Auth Req does not fit.\n"); - return; + return -1; } printf(" :) Authentication Request :)\n"); diff --git a/src/tests/test_common.c b/src/tests/test_common.c index eeb0bec..701d581 100644 --- a/src/tests/test_common.c +++ b/src/tests/test_common.c @@ -88,6 +88,7 @@ int test_common_init(void) log_set_print_filename(osmo_stderr_target, 0); log_set_use_color(osmo_stderr_target, 0); + return rc; } void test_common_cleanup(void) |