diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-19 00:39:21 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-08-19 00:50:01 +0200 |
commit | b71627b1f74f8c7368fd132f7eec3b2dc26d165f (patch) | |
tree | 48cfcf1f2e07bf0b0acfd9671b1aee10fb12c132 /examples | |
parent | d73c757e6daff089ebbe0af8f4fcaf4a50ec2d6c (diff) |
channel: osmo_chan_init takes one pointer to set the talloc context
Also remove this parameter from osmo_chan_create
Diffstat (limited to 'examples')
-rw-r--r-- | examples/channel/abis_ipa_client.c | 4 | ||||
-rw-r--r-- | examples/channel/abis_ipa_server.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/channel/abis_ipa_client.c b/examples/channel/abis_ipa_client.c index f289a63..c560e9f 100644 --- a/examples/channel/abis_ipa_client.c +++ b/examples/channel/abis_ipa_client.c @@ -55,10 +55,10 @@ int main(void) log_set_log_level(osmo_stderr_target, LOGL_DEBUG); /* initialize channel infrastructure. */ - osmo_chan_init(); + osmo_chan_init(tall_example); /* create channel. */ - chan = osmo_chan_create(tall_example, OSMO_CHAN_ABIS_IPA_CLI); + chan = osmo_chan_create(OSMO_CHAN_ABIS_IPA_CLI); if (chan == NULL) { LOGP(DEXAMPLE, LOGL_ERROR, "Cannot create A-bis IPA client\n"); exit(EXIT_FAILURE); diff --git a/examples/channel/abis_ipa_server.c b/examples/channel/abis_ipa_server.c index 7acbc56..27eebc7 100644 --- a/examples/channel/abis_ipa_server.c +++ b/examples/channel/abis_ipa_server.c @@ -52,10 +52,10 @@ int main(void) log_set_log_level(osmo_stderr_target, LOGL_DEBUG); /* initialize channel infrastructure. */ - osmo_chan_init(); + osmo_chan_init(tall_example); /* create channel. */ - chan = osmo_chan_create(tall_example, OSMO_CHAN_ABIS_IPA_SRV); + chan = osmo_chan_create(OSMO_CHAN_ABIS_IPA_SRV); if (chan == NULL) { LOGP(DEXAMPLE, LOGL_ERROR, "Cannot create A-bis IPA server\n"); exit(EXIT_FAILURE); |