aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-25 18:01:26 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-25 18:01:26 +0100
commitcfc2de8cb0abf2d2d3daf35849168d613d985a39 (patch)
tree37fd918f9dd9d38122faaac900693c3fac483f4d
parenta088325693207118743a67e52eb4e91a4d456e6d (diff)
Reformatted stolower()
-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