]> git.proxmox.com Git - libgit2.git/commitdiff
fileops.c: fix unused warning
authorschu <schu-github@schulog.org>
Mon, 6 Jun 2011 10:17:58 +0000 (12:17 +0200)
committerschu <schu-github@schulog.org>
Mon, 6 Jun 2011 10:17:58 +0000 (12:17 +0200)
Signed-off-by: schu <schu-github@schulog.org>
src/fileops.c

index 56bf2927f38163cfc9b38171692b24c280cdc38e..e8ea1bd0b6e27f163e451975366537b1b02709a2 100644 (file)
@@ -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)
 {