From 95f782ae03cea47a045bb378339d0269cd6130d5 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 20 Dec 2023 00:01:08 +0100 Subject: Reformatted alias_count() --- FICS/command.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/FICS/command.c b/FICS/command.c index c153f9f..a6b403b 100644 --- a/FICS/command.c +++ b/FICS/command.c @@ -125,15 +125,17 @@ alias_lookup(char *tmp, alias_type *alias_list, int numalias) return -1; /* not found */ } -PUBLIC int alias_count(alias_type *alias_list) +PUBLIC int +alias_count(alias_type *alias_list) { - int i; + int i; - for (i = 0; alias_list[i].comm_name; i++); - return i; + for (i = 0; alias_list[i].comm_name; i++) { + /* null */; + } + return i; } - /* Puts alias substitution into alias_string */ PRIVATE void alias_substitute(alias_type *alias_list, int num_alias, char *com_str, char outalias[]) -- cgit v1.2.3