summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/strvec.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/strvec.h b/include/strvec.h
index a7f622c..b28980e 100644
--- a/include/strvec.h
+++ b/include/strvec.h
@@ -26,10 +26,12 @@ struct strvec {
struct dvec vec;
};
-int strvec_init(struct strvec *strvec, size_t cap, struct allocator *allocator);
+int strvec_init(struct strvec *strvec, size_t cap,
+ const struct allocator *allocator);
int strvec_deinit(struct strvec *strvec);
-struct strvec *strvec_alloc(size_t reserved, struct allocator *allocator, int *rc);
+struct strvec *strvec_alloc(size_t reserved,
+ const struct allocator *allocator, int *rc);
int strvec_free(struct strvec *strvec);
int strvec_copy(struct strvec *dst, struct strvec *src,