diff ui.c @ 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 f3b119599b3a
children 93d0e1547842
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;