# HG changeset patch # User Matti Hamalainen # Date 1670364953 -7200 # Node ID ff1af7410bbaf56f42d8a4846dfdbec3a3b8969e # Parent 144bdfca82d1e24850a8522a9baaf85edea4e606 Change to match th_ringbuf_new() API. diff -r 144bdfca82d1 -r ff1af7410bba ui.c --- a/ui.c Fri Feb 25 15:26:06 2022 +0200 +++ b/ui.c Wed Dec 07 00:15:53 2022 +0200 @@ -33,8 +33,7 @@ if ((win = th_malloc0(sizeof(nn_window_t))) == NULL) return NULL; - win->data = th_ringbuf_new(SET_BACKBUF_LEN, nn_line_free); - if (win->data == NULL) + if (th_ringbuf_new(&win->data, SET_BACKBUF_LEN, nn_line_free) != THERR_OK) { th_free(win); return NULL;