changeset 710:ff1af7410bba

Change to match th_ringbuf_new() API.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 07 Dec 2022 00:15:53 +0200
parents 144bdfca82d1
children 6b79b3438818
files ui.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;