mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-28 06:03:06 +02:00
more ANSI/ISO C cleanups
This commit is contained in:
+6
-6
@@ -570,7 +570,7 @@ execute_command_internal (COMMAND *command, int asynchronous, int pipe_in, int p
|
||||
volatile int save_line_number;
|
||||
#if defined (PROCESS_SUBSTITUTION)
|
||||
volatile int ofifo, nfifo, osize, saved_fifo;
|
||||
volatile void *ofifo_list;
|
||||
void *ofifo_list; /* void * volatile ofifo_list; */
|
||||
#endif
|
||||
|
||||
if (breaking || continuing)
|
||||
@@ -791,7 +791,7 @@ execute_command_internal (COMMAND *command, int asynchronous, int pipe_in, int p
|
||||
#if defined (PROCESS_SUBSTITUTION)
|
||||
if (saved_fifo)
|
||||
{
|
||||
free ((void *)ofifo_list);
|
||||
free (ofifo_list);
|
||||
discard_unwind_frame ("internal_fifos");
|
||||
}
|
||||
#endif
|
||||
@@ -1104,7 +1104,7 @@ execute_command_internal (COMMAND *command, int asynchronous, int pipe_in, int p
|
||||
nfifo = num_fifos ();
|
||||
if (nfifo > ofifo)
|
||||
close_new_fifos ((void *)ofifo_list, osize);
|
||||
free ((void *)ofifo_list);
|
||||
free (ofifo_list);
|
||||
discard_unwind_frame ("internal_fifos");
|
||||
}
|
||||
#endif
|
||||
@@ -1340,7 +1340,7 @@ time_command (COMMAND *command, int asynchronous, int pipe_in, int pipe_out, str
|
||||
# if defined (HAVE_STRUCT_TIMEZONE)
|
||||
gettimeofday (&before, &dtz);
|
||||
# else
|
||||
gettimeofday (&before, (void *)NULL);
|
||||
gettimeofday (&before, NULL);
|
||||
# endif /* !HAVE_STRUCT_TIMEZONE */
|
||||
getrusage (RUSAGE_SELF, &selfb);
|
||||
getrusage (RUSAGE_CHILDREN, &kidsb);
|
||||
@@ -1390,7 +1390,7 @@ time_command (COMMAND *command, int asynchronous, int pipe_in, int pipe_out, str
|
||||
# if defined (HAVE_STRUCT_TIMEZONE)
|
||||
gettimeofday (&after, &dtz);
|
||||
# else
|
||||
gettimeofday (&after, (void *)NULL);
|
||||
gettimeofday (&after, NULL);
|
||||
# endif /* !HAVE_STRUCT_TIMEZONE */
|
||||
getrusage (RUSAGE_SELF, &selfa);
|
||||
getrusage (RUSAGE_CHILDREN, &kidsa);
|
||||
@@ -3365,7 +3365,7 @@ execute_select_command (SELECT_COM *select_command)
|
||||
/* command and arithmetic substitution, parameter and variable expansion,
|
||||
word splitting, pathname expansion, and quote removal. */
|
||||
list = releaser = expand_words_no_vars (select_command->map_list);
|
||||
list_len = list_length (list);
|
||||
list_len = list_length ((GENERIC_LIST *)list);
|
||||
if (list == 0 || list_len == 0)
|
||||
{
|
||||
if (list)
|
||||
|
||||
Reference in New Issue
Block a user