diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-02-17 11:07:45 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-02-17 11:07:45 -0800 |
commit | 55db80c6970b8643b4777c3b5586531e2d2e7469 (patch) | |
tree | ab4178a33ebc1c8d77ec6669a6c0d433574257c8 /src/fb.h | |
parent | 9e56788affedd6b01df6764732a4ba786f7a47f3 (diff) |
fb,settings: return NULL from _free() methods
and ignore NULL parameters as benign
Diffstat (limited to 'src/fb.h')
-rw-r--r-- | src/fb.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -47,7 +47,7 @@ typedef struct fb_ops_t { fb_page_t * fb_page_get(fb_t *fb); void fb_page_put(fb_t *fb, fb_page_t *page); -void fb_free(fb_t *fb); +fb_t * fb_free(fb_t *fb); void fb_get_put_pages_count(fb_t *fb, unsigned *count); int fb_new(const fb_ops_t *ops, settings_t *settings, int n_pages, fb_t **res_fb); void * fb_context(fb_t *fb); |