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 -8
View File
@@ -67,8 +67,7 @@ static void print_alias (alias_t *, int);
/* Hack the alias command in a Korn shell way. */
int
alias_builtin (list)
WORD_LIST *list;
alias_builtin (WORD_LIST *list)
{
int any_failed, offset, pflag, dflags;
alias_t **alias_list, *t;
@@ -167,10 +166,9 @@ $END
#if defined (ALIAS)
/* Remove aliases named in LIST from the aliases database. */
int
unalias_builtin (list)
register WORD_LIST *list;
unalias_builtin (WORD_LIST *list)
{
register alias_t *alias;
alias_t *alias;
int opt, aflag;
aflag = 0;
@@ -224,9 +222,7 @@ unalias_builtin (list)
/* Output ALIAS in such a way as to allow it to be read back in. */
static void
print_alias (alias, flags)
alias_t *alias;
int flags;
print_alias (alias_t *alias, int flags)
{
char *value;