[easytag/wip/clang-analyzer: 5/7] Mark Id3tag_Read_File_Tag() filename as const



commit 3489689b45511233f232511e2832e5f7a6b03336
Author: David King <amigadave amigadave com>
Date:   Sat Aug 10 22:57:54 2013 +0100

    Mark Id3tag_Read_File_Tag() filename as const

 src/id3_tag.h    |    2 +-
 src/id3v24_tag.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/id3_tag.h b/src/id3_tag.h
index 0e0da13..ffae191 100644
--- a/src/id3_tag.h
+++ b/src/id3_tag.h
@@ -36,7 +36,7 @@
 /**************
  * Prototypes *
  **************/
-gboolean Id3tag_Read_File_Tag     (gchar *filename, File_Tag *FileTag);
+gboolean Id3tag_Read_File_Tag (const gchar *filename, File_Tag *FileTag);
 gboolean Id3tag_Write_File_v24Tag (ET_File *ETFile);
 gboolean Id3tag_Write_File_Tag    (ET_File *ETFile);
 
diff --git a/src/id3v24_tag.c b/src/id3v24_tag.c
index c2cf761..c53be48 100644
--- a/src/id3v24_tag.c
+++ b/src/id3v24_tag.c
@@ -90,7 +90,7 @@ static int etag_write_tags (const gchar *filename, struct id3_tag const *v1tag,
  * Returns TRUE on success, else FALSE.
  * If a tag entry exists (ex: title), we allocate memory, else value stays to NULL
  */
-gboolean Id3tag_Read_File_Tag (gchar *filename, File_Tag *FileTag)
+gboolean Id3tag_Read_File_Tag (const gchar *filename, File_Tag *FileTag)
 {
     int tmpfile;
     struct id3_file *file;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]