diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-05-29 13:54:27 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-06-09 08:49:36 +0000 |
commit | 4a824ca8fcf13427d1560b2c866da2a2d82e3692 (patch) | |
tree | 9b85a739ddca384e56959a9bdfe0586d8e987148 /openbsc/src/libcommon | |
parent | aef68387ae6d78df948a6b2b3a61050c4f192c5e (diff) |
don't re-implement osmo_talloc_replace_string()
osmo_talloc_replace_string() was introducd into libosmocore in 2014, see
commit f3c7e85d05f7b2b7bf093162b776f71b2bc6420d
There's no reason for us to re-implement this as bsc_replace_string
here.
Change-Id: I6d2fcaabbc74730f6f491a2b2d5c784ccafc6602
Diffstat (limited to 'openbsc/src/libcommon')
-rw-r--r-- | openbsc/src/libcommon/common_vty.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/openbsc/src/libcommon/common_vty.c b/openbsc/src/libcommon/common_vty.c index 834da516b..6e1c10b00 100644 --- a/openbsc/src/libcommon/common_vty.c +++ b/openbsc/src/libcommon/common_vty.c @@ -143,11 +143,3 @@ int bsc_vty_is_config_node(struct vty *vty, int node) return 1; } } - -/* a talloc string replace routine */ -void bsc_replace_string(void *ctx, char **dst, const char *newstr) -{ - if (*dst) - talloc_free(*dst); - *dst = talloc_strdup(ctx, newstr); -} |