diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-02 08:17:45 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-02 08:18:07 +0200 |
commit | f0066beb4d617c93d69d2a5308a2a19dffa13b3c (patch) | |
tree | 506e10a6f715654658e3b941c4366bd3080ac0b5 /package/util-linux/patches/patch-fdisks_fdisksunlabel_c | |
parent | 29949a05b6be852c6ad2835b50087dac35b27023 (diff) |
create core package section, cleanup old installer stuff
Diffstat (limited to 'package/util-linux/patches/patch-fdisks_fdisksunlabel_c')
-rw-r--r-- | package/util-linux/patches/patch-fdisks_fdisksunlabel_c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/package/util-linux/patches/patch-fdisks_fdisksunlabel_c b/package/util-linux/patches/patch-fdisks_fdisksunlabel_c deleted file mode 100644 index 35851b9b6..000000000 --- a/package/util-linux/patches/patch-fdisks_fdisksunlabel_c +++ /dev/null @@ -1,30 +0,0 @@ -patch taken from sabotage linux -- https://github.com/rofl0r/sabotage - ---- util-linux-2.23.2.orig/fdisks/fdisksunlabel.c 2013-07-30 10:39:26.000000000 +0200 -+++ util-linux-2.23.2/fdisks/fdisksunlabel.c 2013-08-14 12:38:12.000000000 +0200 -@@ -383,9 +383,11 @@ static void fetch_sun(struct fdisk_conte - } - } - --static int verify_sun_cmp(int *a, int *b, void *data) -+static void* cmp_data; -+static int verify_sun_cmp(const void *pa, const void *pb) - { -- unsigned int *verify_sun_starts = (unsigned int *) data; -+ const int *a = pa, *b = pb; -+ unsigned int *verify_sun_starts = (unsigned int *) cmp_data; - - if (*a == -1) - return 1; -@@ -449,9 +451,8 @@ static int sun_verify_disklabel(struct f - else - array[i] = -1; - } -- qsort_r(array,ARRAY_SIZE(array),sizeof(array[0]), -- (int (*)(const void *,const void *,void *)) verify_sun_cmp, -- verify_sun_starts); -+ cmp_data = verify_sun_starts; -+ qsort(array,ARRAY_SIZE(array),sizeof(array[0]), verify_sun_cmp); - - if (array[0] == -1) { - fdisk_info(cxt, _("No partitions defined")); |