diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:11:33 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:11:33 +0100 |
commit | 136e9c7cc0df39e222fcde12259fa69b7f44f967 (patch) | |
tree | 7789dc046c9faabc8300c79036681a4312007521 | |
parent | 8effd39a5089544afc9489668c78a3d5b254de5b (diff) |
Reformatted file_bplayer()
-rw-r--r-- | FICS/utils.c | 12 |
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; } /* |