more ANSI/ISO C cleanups

This commit is contained in:
Chet Ramey
2023-03-28 16:34:56 -04:00
parent 1efe6d6b69
commit 727e92c806
38 changed files with 3332 additions and 220 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ strvec_from_word_list (WORD_LIST *list, int alloc, int starting_index, int *ip)
int count;
char **array;
count = list_length (list);
count = list_length ((GENERIC_LIST *)list);
array = (char **)xmalloc ((1 + count + starting_index) * sizeof (char *));
for (count = 0; count < starting_index; count++)