diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-30 12:26:52 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-30 12:26:52 +0800 |
commit | afccfb9380cc7c06fcacb19410796ba87ddee677 (patch) | |
tree | e44a425ce24680ddfb12baea386b1dd3224337f9 /openbsc/src/vty_interface_layer3.c | |
parent | 0f7a8258f041454b7b15ee434940a2028f5c3a82 (diff) |
[vty] Allow to create a buffer in a given context.
Stop using the global vty context for all allocations
and allow to embed the buffer into a given context, and
allocate sub buffers with the context of its parent.
Diffstat (limited to 'openbsc/src/vty_interface_layer3.c')
-rw-r--r-- | openbsc/src/vty_interface_layer3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/vty_interface_layer3.c b/openbsc/src/vty_interface_layer3.c index 5e3098289..fee5baee5 100644 --- a/openbsc/src/vty_interface_layer3.c +++ b/openbsc/src/vty_interface_layer3.c @@ -58,7 +58,7 @@ static int dummy_config_write(struct vty *v) static struct buffer *argv_to_buffer(int argc, const char *argv[], int base) { - struct buffer *b = buffer_new(1024); + struct buffer *b = buffer_new(NULL, 1024); int i; if (!b) |