summaryrefslogtreecommitdiff
path: root/src/compat/compat-basename.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat/compat-basename.c')
-rw-r--r--src/compat/compat-basename.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/compat/compat-basename.c b/src/compat/compat-basename.c
index a057691..b7b5c43 100644
--- a/src/compat/compat-basename.c
+++ b/src/compat/compat-basename.c
@@ -37,14 +37,15 @@
* This version is extended to handle both / and \ in path names
*/
char *
-basename (char *filename)
+basename(char *filename)
{
- char *p = strrchr (filename, '/');
- if (!p) {
- /* If NULL, check for \ instead ... might be Windows a path */
- p = strrchr (filename, '\\');
- }
- return p ? p + 1 : (char *) filename;
+ char *p = strrchr(filename, '/');
+ if (!p)
+ {
+ /* If NULL, check for \ instead ... might be Windows a path */
+ p = strrchr(filename, '\\');
+ }
+ return p ? p + 1 : (char *) filename;
}
#endif /* HAVE_BASENAME */