summaryrefslogtreecommitdiff
path: root/src/modules/flow/ff.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-09-02 09:51:39 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-09-02 09:51:39 -0700
commitc207b329654cc3a5efa58127f43477cd915a941d (patch)
tree6a86c47fe215f8ccb653e7fbabc79a322155a227 /src/modules/flow/ff.h
parentd73df8d9b10490b2e09623972cf4d8d5f7b84162 (diff)
modules/flow: minor cleanup of ff_new()/ff_free()
Simplify ff_new() failure path by using ff_free(), also make ff_free() more ergonomic by returning NULL.
Diffstat (limited to 'src/modules/flow/ff.h')
-rw-r--r--src/modules/flow/ff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/flow/ff.h b/src/modules/flow/ff.h
index 4d30143..0324ea0 100644
--- a/src/modules/flow/ff.h
+++ b/src/modules/flow/ff.h
@@ -6,7 +6,7 @@
typedef struct ff_t ff_t;
ff_t * ff_new(unsigned size, void (*populator)(void *context, unsigned size, const v3f_t *other, v3f_t *field), void *context);
-void ff_free(ff_t *ff);
+ff_t * ff_free(ff_t *ff);
v3f_t ff_get(ff_t *ff, v3f_t *coordinate, float w);
void ff_populate(ff_t *ff, unsigned idx);
© All Rights Reserved