aboutsummaryrefslogtreecommitdiffstats
path: root/src/pseudotalloc/pseudotalloc.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-05-17 21:06:51 +0200
committerHarald Welte <laforge@gnumonks.org>2019-05-18 11:08:40 +0200
commit5f46605aeecab35729cf843493e6fa3549e16d9e (patch)
treed5a2da91918a733459f0016f7ee55cd827507c90 /src/pseudotalloc/pseudotalloc.c
parent753ae497c7e5aefb8ba94444e099ab91e6722182 (diff)
pseudotalloc: turn talloc_steal() into #define
Any non-anciant version of talloc implements talloc_steal() as a #define using the _talloc_steal_loc() symbol. Let's be more compatible. This fix is relevant to using osmo_fsm inside the osmo-ccid-firmware builds for Cortex-M4. In this situation, for some strange reason, libosmcoore is compiled using src/pseudotalloc/talloc.h, but later then linked against the real libtalloc. Change-Id: I1ee7f5e9b1002cff37bb8341ad870e1da5f1f9ff
Diffstat (limited to 'src/pseudotalloc/pseudotalloc.c')
-rw-r--r--src/pseudotalloc/pseudotalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pseudotalloc/pseudotalloc.c b/src/pseudotalloc/pseudotalloc.c
index 89e62696..c368296c 100644
--- a/src/pseudotalloc/pseudotalloc.c
+++ b/src/pseudotalloc/pseudotalloc.c
@@ -97,7 +97,7 @@ char *talloc_asprintf(const void *ctx, const char *fmt, ...)
return buf;
}
-void *talloc_steal(const void *new_ctx, const void *obj)
+void *_talloc_steal_loc(const void *new_ctx, const void *obj, const char *location)
{
/* as we don't do hierarchical allocations, this is simply a NOP */
return (void *)obj;