mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-31 23:20:45 +02:00
second set of ANSI C changes: C89-style function declarations, more inline functions, remove register keyword
This commit is contained in:
+4
-7
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user