summaryrefslogtreecommitdiff
path: root/src/share/grabbag
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2013-03-22 18:22:57 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2013-03-29 21:25:59 +1100
commit7dc5e3a8ff3f1b348580f48cccf4d2fd24d6384e (patch)
tree62d73eb566dd8e1df711dd0f52dfe504ff5334ec /src/share/grabbag
parent608e246f5215a96756616b5f23e82d588e2f29b9 (diff)
downloadflac-7dc5e3a8ff3f1b348580f48cccf4d2fd24d6384e.tar.gz
Rename _flac_stat to flac_stat_s.
Diffstat (limited to 'src/share/grabbag')
-rw-r--r--src/share/grabbag/file.c8
-rw-r--r--src/share/grabbag/replaygain.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/share/grabbag/file.c b/src/share/grabbag/file.c
index 601dba50..dd2880cb 100644
--- a/src/share/grabbag/file.c
+++ b/src/share/grabbag/file.c
@@ -50,7 +50,7 @@
void grabbag__file_copy_metadata(const char *srcpath, const char *destpath)
{
- struct _flac_stat srcstat;
+ struct flac_stat_s srcstat;
struct utimbuf srctime;
if(0 == flac_stat(srcpath, &srcstat)) {
@@ -63,7 +63,7 @@ void grabbag__file_copy_metadata(const char *srcpath, const char *destpath)
FLAC__off_t grabbag__file_get_filesize(const char *srcpath)
{
- struct _flac_stat srcstat;
+ struct flac_stat_s srcstat;
if(0 == flac_stat(srcpath, &srcstat))
return srcstat.st_size;
@@ -86,7 +86,7 @@ const char *grabbag__file_get_basename(const char *srcpath)
FLAC__bool grabbag__file_change_stats(const char *filename, FLAC__bool read_only)
{
- struct _flac_stat stats;
+ struct flac_stat_s stats;
if(0 == flac_stat(filename, &stats)) {
#if !defined _MSC_VER && !defined __MINGW32__
@@ -145,7 +145,7 @@ FLAC__bool grabbag__file_are_same(const char *f1, const char *f2)
CloseHandle(h2);
return same;
#else
- struct _flac_stat s1, s2;
+ struct flac_stat_s s1, s2;
return f1 && f2 && flac_stat(f1, &s1) == 0 && flac_stat(f2, &s2) == 0 && s1.st_ino == s2.st_ino && s1.st_dev == s2.st_dev;
#endif
}
diff --git a/src/share/grabbag/replaygain.c b/src/share/grabbag/replaygain.c
index ba6b98c9..43f1be0d 100644
--- a/src/share/grabbag/replaygain.c
+++ b/src/share/grabbag/replaygain.c
@@ -69,14 +69,14 @@ const FLAC__byte * const GRABBAG__REPLAYGAIN_TAG_ALBUM_GAIN = (const FLAC__byte
const FLAC__byte * const GRABBAG__REPLAYGAIN_TAG_ALBUM_PEAK = (const FLAC__byte * const)"REPLAYGAIN_ALBUM_PEAK";
-static FLAC__bool get_file_stats_(const char *filename, struct _flac_stat *stats)
+static FLAC__bool get_file_stats_(const char *filename, struct flac_stat_s *stats)
{
FLAC__ASSERT(0 != filename);
FLAC__ASSERT(0 != stats);
return (0 == flac_stat(filename, stats));
}
-static void set_file_stats_(const char *filename, struct _flac_stat *stats)
+static void set_file_stats_(const char *filename, struct flac_stat_s *stats)
{
FLAC__ASSERT(0 != filename);
FLAC__ASSERT(0 != stats);
@@ -478,7 +478,7 @@ static const char *store_to_file_pre_(const char *filename, FLAC__Metadata_Chain
static const char *store_to_file_post_(const char *filename, FLAC__Metadata_Chain *chain, FLAC__bool preserve_modtime)
{
- struct _flac_stat stats;
+ struct flac_stat_s stats;
const FLAC__bool have_stats = get_file_stats_(filename, &stats);
(void)grabbag__file_change_stats(filename, /*read_only=*/false);