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/vty.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/vty.c')
-rw-r--r-- | openbsc/src/vty/vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/vty/vty.c b/openbsc/src/vty/vty.c index 8455b0e3d..5e4902441 100644 --- a/openbsc/src/vty/vty.c +++ b/openbsc/src/vty/vty.c @@ -51,7 +51,7 @@ struct vty *vty_new() if (!new) goto out; - new->obuf = buffer_new(0); /* Use default buffer size. */ + new->obuf = buffer_new(new, 0); /* Use default buffer size. */ if (!new->obuf) goto out_new; new->buf = _talloc_zero(new, VTY_BUFSIZ, "vty_new->buf"); |