diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2008-08-20 14:00:34 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2008-08-20 14:00:34 +0000 |
commit | 1e82faaa5e835b00676421b1c63bef541f8ca0d3 (patch) | |
tree | abda8ea9d70f7d10c897cf214028b9037b17f784 /package/busybox/patches/526-ipkg_fix_pkg_comparison.patch | |
parent | e3d9bc5779a012df82e2c48af3bef81bb011257a (diff) | |
download | upstream-1e82faaa5e835b00676421b1c63bef541f8ca0d3.tar.gz upstream-1e82faaa5e835b00676421b1c63bef541f8ca0d3.tar.bz2 upstream-1e82faaa5e835b00676421b1c63bef541f8ca0d3.zip |
upgrade busybox to v1.11.1 and add current upstream fixes
SVN-Revision: 12348
Diffstat (limited to 'package/busybox/patches/526-ipkg_fix_pkg_comparison.patch')
-rw-r--r-- | package/busybox/patches/526-ipkg_fix_pkg_comparison.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/package/busybox/patches/526-ipkg_fix_pkg_comparison.patch b/package/busybox/patches/526-ipkg_fix_pkg_comparison.patch new file mode 100644 index 0000000000..f206f973c6 --- /dev/null +++ b/package/busybox/patches/526-ipkg_fix_pkg_comparison.patch @@ -0,0 +1,43 @@ +--- a/archival/libipkg/pkg.c ++++ b/archival/libipkg/pkg.c +@@ -1139,8 +1139,12 @@ + return 0; + } + +-int pkg_name_version_and_architecture_compare(pkg_t *a, pkg_t *b) ++int pkg_name_version_and_architecture_compare(const void *pkg_a, const void *pkg_b) + { ++ pkg_t * const *p1 = pkg_a; ++ pkg_t * const *p2 = pkg_b; ++ const pkg_t *a = *p1; ++ const pkg_t *b = *p2; + int namecmp; + int vercmp; + if (!a->name || !b->name) { +@@ -1167,8 +1171,12 @@ + return 0; + } + +-int abstract_pkg_name_compare(abstract_pkg_t *a, abstract_pkg_t *b) ++int abstract_pkg_name_compare(const void *apkg_a, const void *apkg_b) + { ++ abstract_pkg_t * const *ap1 = apkg_a; ++ abstract_pkg_t * const *ap2 = apkg_b; ++ const abstract_pkg_t *a = *ap1; ++ const abstract_pkg_t *b = *ap2; + if (!a->name || !b->name) { + fprintf(stderr, "abstract_pkg_name_compare: a=%p a->name=%p b=%p b->name=%p\n", + a, a->name, b, b->name); +--- a/archival/libipkg/pkg.h ++++ b/archival/libipkg/pkg.h +@@ -191,8 +191,8 @@ + char *pkg_version_str_alloc(pkg_t *pkg); + + int pkg_compare_versions(const pkg_t *pkg, const pkg_t *ref_pkg); +-int pkg_name_version_and_architecture_compare(pkg_t *a, pkg_t *b); +-int abstract_pkg_name_compare(abstract_pkg_t *a, abstract_pkg_t *b); ++int pkg_name_version_and_architecture_compare(const void *pkg_a, const void *pkg_b); ++int abstract_pkg_name_compare(const void *apkg_a, const void *apkg_b); + + char * pkg_formatted_info(pkg_t *pkg ); + char * pkg_formatted_field(pkg_t *pkg, const char *field ); |