summaryrefslogtreecommitdiff
path: root/strvec.h
diff options
context:
space:
mode:
Diffstat (limited to 'strvec.h')
-rw-r--r--strvec.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/strvec.h b/strvec.h
index fdcad75b45..9f55c8766b 100644
--- a/strvec.h
+++ b/strvec.h
@@ -29,11 +29,13 @@ extern const char *empty_strvec[];
*/
struct strvec {
const char **v;
- int nr;
- int alloc;
+ size_t nr;
+ size_t alloc;
};
-#define STRVEC_INIT { empty_strvec, 0, 0 }
+#define STRVEC_INIT { \
+ .v = empty_strvec, \
+}
/**
* Initialize an array. This is no different than assigning from