mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-02 18:00:49 +02:00
more ANSI/ISO C cleanups
This commit is contained in:
@@ -1177,6 +1177,7 @@ quote_string(char *s)
|
||||
return savestring(s);
|
||||
}
|
||||
|
||||
void
|
||||
print_element(ARRAY_ELEMENT *ae)
|
||||
{
|
||||
char lbuf[INT_STRLEN_BOUND (intmax_t) + 1];
|
||||
@@ -1186,12 +1187,14 @@ print_element(ARRAY_ELEMENT *ae)
|
||||
element_value(ae));
|
||||
}
|
||||
|
||||
void
|
||||
print_array(ARRAY *a)
|
||||
{
|
||||
printf("\n");
|
||||
array_walk(a, print_element, (void *)NULL);
|
||||
}
|
||||
|
||||
int
|
||||
main(int c, char **v)
|
||||
{
|
||||
ARRAY *a, *new_a, *copy_of_a;
|
||||
|
||||
Reference in New Issue
Block a user