aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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[])