diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-12 23:21:54 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-12 23:31:53 +0200 |
commit | 3e9a7f80bd6b1d62d3c3b175382ff15fa2f106c7 (patch) | |
tree | daebaa0f94f1d7a22cfa0dbcccb9a4409f65a3c9 /openbsc/include/openbsc/vty.h | |
parent | 9ecf678995145d7a49c440beb755627f03ff719c (diff) |
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.
Diffstat (limited to 'openbsc/include/openbsc/vty.h')
-rw-r--r-- | openbsc/include/openbsc/vty.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |