fourth set of ANSI C changes: size_t; rest globskipdots to enabled default in subshells

This commit is contained in:
Chet Ramey
2023-01-04 09:18:59 -05:00
parent b2613ad1c0
commit 5b512e1121
16 changed files with 87 additions and 60 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
/* stringlist.c - functions to handle a generic `list of strings' structure */
/* Copyright (C) 2000-2019, 2022 Free Software Foundation, Inc.
/* Copyright (C) 2000-2019, 2022-2023 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -37,7 +37,7 @@
/* Allocate a new STRINGLIST, with room for N strings. */
STRINGLIST *
strlist_create (int n)
strlist_create (size_t n)
{
STRINGLIST *ret;
register int i;
@@ -60,7 +60,7 @@ strlist_create (int n)
}
STRINGLIST *
strlist_resize (STRINGLIST *sl, int n)
strlist_resize (STRINGLIST *sl, size_t n)
{
register int i;