projects
/
platform
/
upstream
/
flac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
31251b4
)
minor syntax
author
Josh Coalson
<jcoalson@users.sourceforce.net>
Tue, 10 Oct 2006 15:06:17 +0000
(15:06 +0000)
committer
Josh Coalson
<jcoalson@users.sourceforce.net>
Tue, 10 Oct 2006 15:06:17 +0000
(15:06 +0000)
src/share/grabbag/file.c
patch
|
blob
|
history
diff --git
a/src/share/grabbag/file.c
b/src/share/grabbag/file.c
index
23d6f60
..
f0fae6d
100644
(file)
--- a/
src/share/grabbag/file.c
+++ b/
src/share/grabbag/file.c
@@
-110,10
+110,10
@@
FLAC__bool grabbag__file_change_stats(const char *filename, FLAC__bool read_only
FLAC__bool grabbag__file_are_same(const char *f1, const char *f2)
{
FLAC__bool grabbag__file_are_same(const char *f1, const char *f2)
{
- struct stat s1, s2;
#if defined _MSC_VER || defined __MINGW32__
#if defined _MSC_VER || defined __MINGW32__
- return f1 && f2 && 0 == strcmp(
s1, s
2); /*@@@@@@ need better method than strcmp */
+ return f1 && f2 && 0 == strcmp(
f1, f
2); /*@@@@@@ need better method than strcmp */
#else
#else
+ struct stat s1, s2;
return f1 && f2 && stat(f1, &s1) == 0 && stat(f2, &s2) == 0 && s1.st_ino == s2.st_ino;
#endif
}
return f1 && f2 && stat(f1, &s1) == 0 && stat(f2, &s2) == 0 && s1.st_ino == s2.st_ino;
#endif
}