diff options
Diffstat (limited to 'strvec.h')
-rw-r--r-- | strvec.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |