diff options
author | Max Kellermann <max@duempel.org> | 2013-01-29 23:26:51 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-29 23:26:51 +0100 |
commit | f5c0b0d3168d6c34010f86a4b6878b7181d10237 (patch) | |
tree | 50304ecc4ab8690c9283051268a393e87e3a9461 /src/input | |
parent | ba51045d9e85b8e48afed629d6d87ac3338acd46 (diff) | |
download | mpd-f5c0b0d3168d6c34010f86a4b6878b7181d10237.tar.gz mpd-f5c0b0d3168d6c34010f86a4b6878b7181d10237.tar.xz mpd-f5c0b0d3168d6c34010f86a4b6878b7181d10237.zip |
ArchiveFile: convert to a class
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/ArchiveInputPlugin.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/input/ArchiveInputPlugin.cxx b/src/input/ArchiveInputPlugin.cxx index 01a854523..fde817da7 100644 --- a/src/input/ArchiveInputPlugin.cxx +++ b/src/input/ArchiveInputPlugin.cxx @@ -40,7 +40,6 @@ input_archive_open(const char *pathname, GError **error_r) { const struct archive_plugin *arplug; - struct archive_file *file; char *archive, *filename, *suffix, *pname; struct input_stream *is; @@ -63,7 +62,7 @@ input_archive_open(const char *pathname, return NULL; } - file = archive_file_open(arplug, archive, error_r); + auto file = archive_file_open(arplug, archive, error_r); if (file == NULL) { g_free(pname); return NULL; |