From 3e9a7f80bd6b1d62d3c3b175382ff15fa2f106c7 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 12 Oct 2010 23:21:54 +0200 Subject: misc: Replace the idiom for replacing a string with a function call Remove a lot of code in favor of a new function that is freeing the old string and copying the new one. I should have gotten the context and the strings right. --- openbsc/include/openbsc/vty.h | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc/include/openbsc/vty.h') diff --git a/openbsc/include/openbsc/vty.h b/openbsc/include/openbsc/vty.h index d62778840..5cdd204d8 100644 --- a/openbsc/include/openbsc/vty.h +++ b/openbsc/include/openbsc/vty.h @@ -35,5 +35,6 @@ enum bsc_vty_node { }; extern int bsc_vty_is_config_node(struct vty *vty, int node); +extern void bsc_replace_string(void *ctx, char **dst, const char *newstr); #endif -- cgit v1.2.3