summaryrefslogtreecommitdiff
path: root/src/fb.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-02-17 11:07:45 -0800
committerVito Caputo <vcaputo@pengaru.com>2021-02-17 11:07:45 -0800
commit55db80c6970b8643b4777c3b5586531e2d2e7469 (patch)
treeab4178a33ebc1c8d77ec6669a6c0d433574257c8 /src/fb.h
parent9e56788affedd6b01df6764732a4ba786f7a47f3 (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fb.h b/src/fb.h
index 3a3646a..5e1331e 100644
--- a/src/fb.h
+++ b/src/fb.h
@@ -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);
© All Rights Reserved