rename the global talloc context
both the host and the firmware build require a global talloc context
with external linkage, so let's agree on one name.
Change-Id: Idced24869863983bfde0c9c438498999717f2042
diff --git a/ccid_host/cuart_fsm_test.c b/ccid_host/cuart_fsm_test.c
index 1151b34..5b03bfe 100644
--- a/ccid_host/cuart_fsm_test.c
+++ b/ccid_host/cuart_fsm_test.c
@@ -37,13 +37,13 @@
}
}
-static void *tall_main_ctx;
+static void *g_tall_ctx;
static void signal_handler(int signal)
{
switch (signal) {
case SIGUSR1:
- talloc_report_full(tall_main_ctx, stderr);
+ talloc_report_full(g_tall_ctx, stderr);
break;
}
}
@@ -54,9 +54,9 @@
uint8_t atr[64];
int rc;
- tall_main_ctx = talloc_named_const(NULL, 0, "main");
- msgb_talloc_ctx_init(tall_main_ctx, 0);
- osmo_init_logging2(tall_main_ctx, &log_info);
+ g_tall_ctx = talloc_named_const(NULL, 0, "main");
+ msgb_talloc_ctx_init(g_tall_ctx, 0);
+ osmo_init_logging2(g_tall_ctx, &log_info);
osmo_fsm_log_addr(false);
signal(SIGUSR1, &signal_handler);