diff options
author | Max Kellermann <max@duempel.org> | 2013-01-29 21:11:04 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-29 21:11:04 +0100 |
commit | a42f9fd4e2ccb164c0634571da9903e6a2aa507a (patch) | |
tree | 104cd2ac6598f1529f03e18c8f77135998b1a55d /src/archive/Iso9660ArchivePlugin.cxx | |
parent | e66005563efb24cdeb0c034a680f6a5556265c09 (diff) | |
download | mpd-a42f9fd4e2ccb164c0634571da9903e6a2aa507a.tar.gz mpd-a42f9fd4e2ccb164c0634571da9903e6a2aa507a.tar.xz mpd-a42f9fd4e2ccb164c0634571da9903e6a2aa507a.zip |
ArchivePlugin: scan_next() returns const string
Diffstat (limited to 'src/archive/Iso9660ArchivePlugin.cxx')
-rw-r--r-- | src/archive/Iso9660ArchivePlugin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/archive/Iso9660ArchivePlugin.cxx b/src/archive/Iso9660ArchivePlugin.cxx index f92895b7d..fe752ff3b 100644 --- a/src/archive/Iso9660ArchivePlugin.cxx +++ b/src/archive/Iso9660ArchivePlugin.cxx @@ -141,16 +141,16 @@ iso9660_archive_scan_reset(struct archive_file *file) context->iter = context->list; } -static char * +static const char * iso9660_archive_scan_next(struct archive_file *file) { Iso9660ArchiveFile *context = (Iso9660ArchiveFile *)file; - char *data = NULL; + const char *data = NULL; if (context->iter != NULL) { ///fetch data and goto next - data = (char *)context->iter->data; + data = (const char *)context->iter->data; context->iter = g_slist_next(context->iter); } return data; |