second set of ANSI C changes: C89-style function declarations, more inline functions, remove register keyword

This commit is contained in:
Chet Ramey
2023-01-03 10:23:11 -05:00
parent 81e3a4fb07
commit a61ffa78ed
85 changed files with 2867 additions and 5479 deletions
+4 -7
View File
@@ -54,8 +54,7 @@ static int exit_or_logout (WORD_LIST *);
static int sourced_logout;
int
exit_builtin (list)
WORD_LIST *list;
exit_builtin (WORD_LIST *list)
{
CHECK_HELPOPT (list);
@@ -79,8 +78,7 @@ $END
/* How to logout. */
int
logout_builtin (list)
WORD_LIST *list;
logout_builtin (WORD_LIST *list)
{
CHECK_HELPOPT (list);
@@ -94,8 +92,7 @@ logout_builtin (list)
}
static int
exit_or_logout (list)
WORD_LIST *list;
exit_or_logout (WORD_LIST *list)
{
int exit_value;
@@ -156,7 +153,7 @@ exit_or_logout (list)
}
void
bash_logout ()
bash_logout (void)
{
/* Run our `~/.bash_logout' file if it exists, and this is a login shell. */
if (login_shell && sourced_logout++ == 0 && subshell_environment == 0)