aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-20 00:01:08 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-20 00:01:08 +0100
commit95f782ae03cea47a045bb378339d0269cd6130d5 (patch)
treece9d4978b86b01a64c710166ebb8bcb656a9d600
parent7b8df68e4f96ac4a246530fa9ec177a5394eb322 (diff)
Reformatted alias_count()
-rw-r--r--FICS/command.c12
1 files 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[])