Re: [Spice-devel] [cacard] simpletlv: Use GArray to make simpletlv_parse simpler

2018-08-13 Thread Christophe Fergeau
Hey, On Mon, Aug 13, 2018 at 02:56:43PM +0200, Jakub Jelen wrote: > On Mon, 2018-08-13 at 11:08 +0200, Christophe Fergeau wrote: > > This allows to get rid of manual reallocations. > > Thank you. This looks more elegant way. Assuming it still works and > passes the CI, it looks good to me. Yup,

Re: [Spice-devel] [cacard] simpletlv: Use GArray to make simpletlv_parse simpler

2018-08-13 Thread Jakub Jelen
On Mon, 2018-08-13 at 11:08 +0200, Christophe Fergeau wrote: > This allows to get rid of manual reallocations. Thank you. This looks more elegant way. Assuming it still works and passes the CI, it looks good to me. Acked-by: Jakub Jelen > Signed-off-by: Christophe Fergeau > --- > src/simpletl

[Spice-devel] [cacard] simpletlv: Use GArray to make simpletlv_parse simpler

2018-08-13 Thread Christophe Fergeau
This allows to get rid of manual reallocations. Signed-off-by: Christophe Fergeau --- src/simpletlv.c | 37 +++-- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/src/simpletlv.c b/src/simpletlv.c index 6759ea7..0adba5a 100644 --- a/src/simpletlv.c