aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2012-08-19 00:39:21 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-08-19 00:50:01 +0200
commitb71627b1f74f8c7368fd132f7eec3b2dc26d165f (patch)
tree48cfcf1f2e07bf0b0acfd9671b1aee10fb12c132 /examples
parentd73c757e6daff089ebbe0af8f4fcaf4a50ec2d6c (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.c4
-rw-r--r--examples/channel/abis_ipa_server.c4
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);