diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-09-16 01:56:37 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-14 01:23:28 +0200 |
commit | 21142f789812553b56f493d79184f5a31ab7b1cd (patch) | |
tree | 9de38f96dff4c80008c04460db5a00053c1a5412 /tests/cipher | |
parent | b058778df1c1ef3476aefd574c7278d11d385ade (diff) |
msgb ctx: use new msgb_talloc_ctx_init() in various main()s
Change-Id: I31d62d5e1f0b272985fdef5013270d385c4b988a
Diffstat (limited to 'tests/cipher')
-rw-r--r-- | tests/cipher/cipher_test.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/cipher/cipher_test.c b/tests/cipher/cipher_test.c index a175012f..c913925e 100644 --- a/tests/cipher/cipher_test.c +++ b/tests/cipher/cipher_test.c @@ -66,11 +66,8 @@ static void test_cipher_parsing(void) int main(int argc, char **argv) { - void *tall_msgb_ctx; - tall_bts_ctx = talloc_named_const(NULL, 1, "OsmoBTS context"); - tall_msgb_ctx = talloc_named_const(tall_bts_ctx, 1, "msgb"); - msgb_set_talloc_ctx(tall_msgb_ctx); + msgb_talloc_ctx_init(tall_bts_ctx, 0); bts_log_init(NULL); |