aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-25 17:59:39 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-25 17:59:39 +0100
commita088325693207118743a67e52eb4e91a4d456e6d (patch)
tree6e36fd333ba98a5c409c48608a677b6d4e3217ad /FICS/utils.c
parent52cf41b6df67171ed301ce783d9744d4f5417c81 (diff)
Reformatted safechar()
Diffstat (limited to 'FICS/utils.c')
-rw-r--r--FICS/utils.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 5aaca9b..9f0647b 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -504,12 +504,13 @@ PUBLIC char *stolower(char *str)
return str;
}
-PUBLIC int safechar(int c)
+PUBLIC int
+safechar(int c)
{
- if ((c == '>') || (c == '!') || (c == '&') || (c == '*') || (c == '?') ||
- (c == '/') || (c == '<') || (c == '|') || (c == '`') || (c == '$'))
- return 0;
- return 1;
+ if (c == '>' || c == '!' || c == '&' || c == '*' || c == '?' ||
+ c == '/' || c == '<' || c == '|' || c == '`' || c == '$')
+ return 0;
+ return 1;
}
PUBLIC int