diff options
| author | schu <schu-github@schulog.org> | 2011-06-06 12:17:58 +0200 |
|---|---|---|
| committer | schu <schu-github@schulog.org> | 2011-06-06 12:17:58 +0200 |
| commit | 05b49b02eff12670b81a28ecf7182a7553c72b6d (patch) | |
| tree | 5b8943695224361ba66b27d9ce9ca8bf7599eb65 /src/fileops.c | |
| parent | f9213015fddb8636daa993080cbbec70a02cba5c (diff) | |
| download | libgit2-05b49b02eff12670b81a28ecf7182a7553c72b6d.tar.gz | |
fileops.c: fix unused warning
Signed-off-by: schu <schu-github@schulog.org>
Diffstat (limited to 'src/fileops.c')
| -rw-r--r-- | src/fileops.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/fileops.c b/src/fileops.c index 56bf2927f..e8ea1bd0b 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -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) { |
