aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/utils.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 9f0647b..9f8ef39 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -490,18 +490,16 @@ PUBLIC int psend_command(int p, char *command, char *input)
return 0;
}
-PUBLIC char *stolower(char *str)
+PUBLIC char *
+stolower(char *str)
{
- int i;
-
- if (!str)
- return NULL;
- for (i = 0; str[i]; i++) {
- if (isupper(str[i])) {
- str[i] = tolower(str[i]);
- }
- }
- return str;
+ if (!str)
+ return NULL;
+ for (int i = 0; str[i]; i++) {
+ if (isupper(str[i]))
+ str[i] = tolower(str[i]);
+ }
+ return str;
}
PUBLIC int