archive_plugin: pass const string to method open()

This commit is contained in:
Max Kellermann
2009-12-16 16:25:02 +01:00
parent b04adde7ab
commit 74156d5bed
4 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;