src/w32.c: Silence compiler warnings.

(map_w32_filename): Remove unused variable `is_fat'.
(chase_symlinks): Add parentheses around expression.
This commit is contained in:
Juanma Barranquero 2012-08-07 00:07:01 +02:00
parent f91b35be60
commit 25a20a3ad8
2 changed files with 7 additions and 2 deletions

View 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.

View file

@ -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. */