src/w32.c: Silence compiler warnings.
authorJuanma Barranquero <lekktu@gmail.com>
Mon, 6 Aug 2012 22:07:01 +0000 (00:07 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Mon, 6 Aug 2012 22:07:01 +0000 (00:07 +0200)
(map_w32_filename): Remove unused variable `is_fat'.
(chase_symlinks): Add parentheses around expression.

src/ChangeLog
src/w32.c

index 5bccda2..ed2a18a 100644 (file)
@@ -1,3 +1,9 @@
+2012-08-06  Juanma Barranquero  <lekktu@gmail.com>
+
+       * w32.c: Silence compiler warnings.
+       (map_w32_filename): Remove unused variable `is_fat'.
+       (chase_symlinks): Add parentheses around expression.
+
 2012-08-06  Glenn Morris  <rgm@gnu.org>
 
        * sysdep.c: Respect BROKEN_GETWD.
index 810ae02..4c17ce8 100644 (file)
--- a/src/w32.c
+++ b/src/w32.c
@@ -2395,7 +2395,6 @@ map_w32_filename (const char * name, const char ** pPath)
   char c;
   char * path;
   const char * save_name = name;
-  int is_fat = 0;
 
   if (strlen (name) >= MAX_PATH)
     {
@@ -4433,7 +4432,7 @@ chase_symlinks (const char *file)
       {
        target[res] = '\0';
        if (!(IS_DEVICE_SEP (target[1])
-             || IS_DIRECTORY_SEP (target[0]) && IS_DIRECTORY_SEP (target[1])))
+             || (IS_DIRECTORY_SEP (target[0]) && IS_DIRECTORY_SEP (target[1]))))
          {
            /* Target is relative.  Append it to the directory part of
               the symlink, then copy the result back to target.  */