aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-25 17:11:33 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-25 17:11:33 +0100
commit136e9c7cc0df39e222fcde12259fa69b7f44f967 (patch)
tree7789dc046c9faabc8300c79036681a4312007521 /FICS/utils.c
parent8effd39a5089544afc9489668c78a3d5b254de5b (diff)
Reformatted file_bplayer()
Diffstat (limited to 'FICS/utils.c')
-rw-r--r--FICS/utils.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 5f53477..f335ab5 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -790,14 +790,14 @@ PUBLIC char *file_wplayer(char *fname)
return tmp;
}
-PUBLIC char *file_bplayer(char *fname)
+PUBLIC char *
+file_bplayer(char *fname)
{
- char *ptr;
+ char *ptr;
- ptr = rindex(fname, '-');
- if (!ptr)
- return "";
- return ptr + 1;
+ if ((ptr = rindex(fname, '-')) == NULL)
+ return "";
+ return ptr + 1;
}
/*