diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-06-18 13:10:57 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-06-22 18:14:18 +0000 |
commit | 00f4ef7262519ccb48213c9b844e1e015b1c3046 (patch) | |
tree | c3b2f7e143d0b577a1618da6dbc84e0500b65806 /src/pseudotalloc/talloc.h | |
parent | ffa41ca6654178050bd3c150b9bb5e2a4375c30d (diff) |
pseudotalloc: Add simplistic implementation of talloc_asprintf
fsm.c uses this function. When compiled with --enable-embedded, it
triggers a warning:
fsm.c: In function 'osmo_fsm_inst_alloc':
fsm.c:213:4: warning: implicit declaration of function 'talloc_asprintf' [-Wimplicit-function-declaration]
fi->name = talloc_asprintf(fi, "%s(%s)", fsm->name, id);
Change-Id: I61cd83d4c8570af1e452c945ac6f194baf7e6ac4
Diffstat (limited to 'src/pseudotalloc/talloc.h')
-rw-r--r-- | src/pseudotalloc/talloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pseudotalloc/talloc.h b/src/pseudotalloc/talloc.h index c7127deb..f4c0a74f 100644 --- a/src/pseudotalloc/talloc.h +++ b/src/pseudotalloc/talloc.h @@ -39,4 +39,4 @@ void *_talloc_zero_array(const void *ctx, size_t el_size, unsigned count, const char *name); - +char *talloc_asprintf(const void *ctx, const char *fmt, ...); |