From 0ecf4bd2bc76cf0ecd37859981f5b69af4557531 Mon Sep 17 00:00:00 2001 From: Lucas Holt Date: Sun, 17 Oct 2021 15:27:23 -0400 Subject: [PATCH] refactor version checks --- libmport/merge_primative.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libmport/merge_primative.c b/libmport/merge_primative.c index 169157b..a096085 100644 --- a/libmport/merge_primative.c +++ b/libmport/merge_primative.c @@ -46,7 +46,7 @@ struct table_entry { #define TABLE_SIZE 128 -static int build_stub_db(sqlite3 **, const char *, const char *, const char **, struct table_entry **); +static int build_stub_db(mportInstance *, sqlite3 **, const char *, const char *, const char **, struct table_entry **); static int archive_metafiles(mportBundleWrite *, sqlite3 *, struct table_entry **); static int archive_package_files(mportBundleWrite *, sqlite3 *, struct table_entry **); static int extract_stub_db(const char *, const char *); @@ -55,7 +55,6 @@ static struct table_entry * find_in_table(struct table_entry **, const char *); static int insert_into_table(struct table_entry **, const char *, const char *); static uint32_t SuperFastHash(const char *); - #include /* @@ -66,7 +65,8 @@ static uint32_t SuperFastHash(const char *); * named `outfile`. Care is taken to not have duplicates, to ensure that the exterior * dependencies are correct, and that the packages are in an optimal order for installation. */ -MPORT_PUBLIC_API int mport_merge_primative(const char **filenames, const char *outfile) +MPORT_PUBLIC_API int +mport_merge_primative(const char **filenames, const char *outfile) { sqlite3 *db; mportBundleWrite *bundle;