Commit 275c6a0b by Vicent Martí

Merge pull request #242 from schu/fix-unused-2

fileops.c: fix unused warning v2
parents 340fc0d4 05b49b02
......@@ -334,17 +334,22 @@ int gitfo_dirent(
return GIT_SUCCESS;
}
#if GIT_PLATFORM_PATH_SEP == '/'
void gitfo_posixify_path(char *GIT_UNUSED(path))
{
/* nothing to do*/
}
#else
void gitfo_posixify_path(char *path)
{
#if GIT_PLATFORM_PATH_SEP != '/'
while (*path) {
if (*path == GIT_PLATFORM_PATH_SEP)
*path = '/';
while (*path) {
if (*path == GIT_PLATFORM_PATH_SEP)
*path = '/';
path++;
}
#endif
path++;
}
}
#endif
int gitfo_retrieve_path_root_offset(const char *path)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment