archive: use GLib instead of utils.h

This commit is contained in:
Max Kellermann 2009-01-02 16:22:40 +01:00
parent cf9bd42416
commit e5b8a3b86d
4 changed files with 3 additions and 6 deletions

View File

@ -22,7 +22,6 @@
#include "archive_api.h"
#include "input_stream.h"
#include "utils.h"
#include <stdint.h>
#include <stddef.h>

View File

@ -22,7 +22,6 @@
#include "archive_api.h"
#include "input_stream.h"
#include "utils.h"
#include <cdio/cdio.h>
#include <cdio/iso9660.h>
@ -73,7 +72,7 @@ listdir_recur(const char *psz_path, iso_context *context)
} else {
//remove leading /
context->list = g_slist_prepend( context->list,
xstrdup(pathname+1));
g_strdup(pathname + 1));
}
}
_cdio_list_free (entlist, true);

View File

@ -23,7 +23,6 @@
#include "archive_api.h"
#include "archive_api.h"
#include "input_stream.h"
#include "utils.h"
#include <zzip/zzip.h>
#include <glib.h>
@ -58,7 +57,8 @@ zip_open(char * pathname)
while (zzip_dir_read(context->dir, &dirent)) {
//add only files
if (dirent.st_size > 0) {
context->list = g_slist_prepend( context->list, xstrdup(dirent.d_name));
context->list = g_slist_prepend(context->list,
g_strdup(dirent.d_name));
}
}

View File

@ -26,7 +26,6 @@
#include <errno.h>
#include <glib.h>
#include "utils.h"
#include "archive_api.h"
/**