summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2024-05-20 13:28:09 +0200
committerLouis Burda <quent.burda@gmail.com>2024-05-20 13:28:09 +0200
commitefba5f45438c08a5fe9a1533164e39b3fa3c58aa (patch)
treefc81ff9a8368b258ff3a0ac75b2c133f92f3bd8d
parent434cb3d1f03912716b75d9d6704d9c6c3a810195 (diff)
downloadlibstrvec-c-efba5f45438c08a5fe9a1533164e39b3fa3c58aa.tar.gz
libstrvec-c-efba5f45438c08a5fe9a1533164e39b3fa3c58aa.zip
Fix type error due to new libstr
-rw-r--r--.gitmodules0
-rw-r--r--include/strvec.h3
2 files changed, 2 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
deleted file mode 100644
index e69de29..0000000
--- a/.gitmodules
+++ /dev/null
diff --git a/include/strvec.h b/include/strvec.h
index 1a4713d..7ce1153 100644
--- a/include/strvec.h
+++ b/include/strvec.h
@@ -3,6 +3,7 @@
#include "dvec.h"
#include "allocator.h"
+#include <stddef.h>
#include <stdbool.h>
#define STRVEC_ITER(strvec, p) (p) = NULL; ((p) = strvec_iter_fwd((strvec), (p)));
@@ -73,7 +74,7 @@ strvec_stra(struct strvec *strvec)
{
LIBSTRVEC_ABORT_ON_ARGS(!strvec && !strvec->vec.data);
- return strvec->vec.data;
+ return (const char **)strvec->vec.data;
}
static inline const char **