summaryrefslogtreecommitdiff
path: root/mysys/mf_fn_ext.c
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2014-10-29 22:28:14 -0400
committerNirbhay Choubey <nirbhay@mariadb.com>2014-10-29 22:28:14 -0400
commit822dc6f5df21d0905aad943324bcdaefdb11dc60 (patch)
tree29a0164e476890b93b6fcdd93a46e36caa7d5401 /mysys/mf_fn_ext.c
parent2bf3e416fedf9984296da9ff43c7ff54780010d1 (diff)
downloadmariadb-git-822dc6f5df21d0905aad943324bcdaefdb11dc60.tar.gz
mysys/mf_fn_ext.c: typos & indents
Diffstat (limited to 'mysys/mf_fn_ext.c')
-rw-r--r--mysys/mf_fn_ext.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/mysys/mf_fn_ext.c b/mysys/mf_fn_ext.c
index cbf0d5dd9e4..b78d73074da 100644
--- a/mysys/mf_fn_ext.c
+++ b/mysys/mf_fn_ext.c
@@ -29,7 +29,7 @@
(normally '.') after the directory name.
RETURN VALUES
- Pointer to to the extension character. If there isn't any extension,
+ Pointer to the extension character. If there isn't any extension,
points at the end ASCII(0) of the filename.
*/
@@ -49,7 +49,7 @@ char *fn_ext(const char *name)
if (!(gpos= strrchr(name, FN_LIBCHAR)))
gpos= name;
#endif
- pos=strchr(gpos,FN_EXTCHAR);
+ pos= strchr(gpos, FN_EXTCHAR);
DBUG_RETURN((char*) (pos ? pos : strend(gpos)));
} /* fn_ext */
@@ -58,7 +58,7 @@ char *fn_ext(const char *name)
Return a pointer to the extension of the filename.
SYNOPSIS
- fn_ext()
+ fn_ext2()
name Name of file
DESCRIPTION
@@ -66,7 +66,7 @@ char *fn_ext(const char *name)
(normally '.') after the directory name.
RETURN VALUES
- Pointer to to the extension character. If there isn't any extension,
+ Pointer to the extension character. If there isn't any extension,
points at the end ASCII(0) of the filename.
*/
@@ -86,6 +86,8 @@ char *fn_ext2(const char *name)
if (!(gpos= strrchr(name, FN_LIBCHAR)))
gpos= name;
#endif
- pos=strrchr(gpos,FN_EXTCHAR);
+ // locate the last occurence of FN_EXTCHAR
+ pos= strrchr(gpos, FN_EXTCHAR);
DBUG_RETURN((char*) (pos ? pos : strend(gpos)));
-} /* fn_ext */
+} /* fn_ext2 */
+