Commit 74156d5b authored by Max Kellermann's avatar Max Kellermann

archive_plugin: pass const string to method open()

parent b04adde7
......@@ -96,7 +96,7 @@ bz2_destroy(struct bz2_archive_file *data)
/* archive open && listing routine */
static struct archive_file *
bz2_open(char *pathname)
bz2_open(const char *pathname)
{
struct bz2_archive_file *context;
int len;
......
......@@ -88,7 +88,7 @@ listdir_recur(const char *psz_path, struct iso9660_archive_file *context)
}
static struct archive_file *
iso9660_archive_open(char * pathname)
iso9660_archive_open(const char *pathname)
{
struct iso9660_archive_file *context =
g_new(struct iso9660_archive_file, 1);
......
......@@ -50,7 +50,7 @@ zzip_quark(void)
/* archive open && listing routine */
static struct archive_file *
zzip_archive_open(char *pathname)
zzip_archive_open(const char *pathname)
{
struct zzip_archive *context = g_malloc(sizeof(*context));
ZZIP_DIRENT dirent;
......
......@@ -48,7 +48,7 @@ struct archive_plugin {
* returns pointer to handle used is all operations with this archive
* or NULL when opening fails
*/
struct archive_file *(*open)(char * pathname);
struct archive_file *(*open)(const char *path_fs);
/**
* reset routine will move current read index in archive to default
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment