diff options
author | Max Kellermann <max@duempel.org> | 2009-12-16 16:25:02 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-12-16 17:09:29 +0100 |
commit | 74156d5bed810209a777ba6ade7ef279691f3091 (patch) | |
tree | a2fc50863ad818e3c33ee0867a5cf0b988aa22c3 | |
parent | b04adde7ab6a2d69272f10d98def072e346156df (diff) | |
download | mpd-74156d5bed810209a777ba6ade7ef279691f3091.tar.gz mpd-74156d5bed810209a777ba6ade7ef279691f3091.tar.xz mpd-74156d5bed810209a777ba6ade7ef279691f3091.zip |
archive_plugin: pass const string to method open()
Diffstat (limited to '')
-rw-r--r-- | src/archive/bz2_archive_plugin.c | 2 | ||||
-rw-r--r-- | src/archive/iso9660_archive_plugin.c | 2 | ||||
-rw-r--r-- | src/archive/zzip_archive_plugin.c | 2 | ||||
-rw-r--r-- | src/archive_plugin.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/archive/bz2_archive_plugin.c b/src/archive/bz2_archive_plugin.c index 32efc09dc..766c558ed 100644 --- a/src/archive/bz2_archive_plugin.c +++ b/src/archive/bz2_archive_plugin.c @@ -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; diff --git a/src/archive/iso9660_archive_plugin.c b/src/archive/iso9660_archive_plugin.c index 440393e41..0c21d5128 100644 --- a/src/archive/iso9660_archive_plugin.c +++ b/src/archive/iso9660_archive_plugin.c @@ -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); diff --git a/src/archive/zzip_archive_plugin.c b/src/archive/zzip_archive_plugin.c index 97b1d727d..ba89e82b3 100644 --- a/src/archive/zzip_archive_plugin.c +++ b/src/archive/zzip_archive_plugin.c @@ -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; diff --git a/src/archive_plugin.h b/src/archive_plugin.h index cb6243f0c..864eb5e72 100644 --- a/src/archive_plugin.h +++ b/src/archive_plugin.h @@ -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 |