comparison 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
comparison
equal deleted inserted replaced
709:144bdfca82d1 710:ff1af7410bba
31 nn_window_t *win; 31 nn_window_t *win;
32 32
33 if ((win = th_malloc0(sizeof(nn_window_t))) == NULL) 33 if ((win = th_malloc0(sizeof(nn_window_t))) == NULL)
34 return NULL; 34 return NULL;
35 35
36 win->data = th_ringbuf_new(SET_BACKBUF_LEN, nn_line_free); 36 if (th_ringbuf_new(&win->data, SET_BACKBUF_LEN, nn_line_free) != THERR_OK)
37 if (win->data == NULL)
38 { 37 {
39 th_free(win); 38 th_free(win);
40 return NULL; 39 return NULL;
41 } 40 }
42 41