void-packages/srcpkgs/efibootmgr/patches/gcc7-duplicate-const.patch
2017-05-09 12:35:50 +02:00

31 lines
892 B
Diff

--- src/efibootdump.c 2016-09-27 23:00:36.000000000 +0200
+++ src/efibootdump.c 2017-05-09 12:33:41.756321719 +0200
@@ -39,7 +39,7 @@
uint8_t *optional_data = NULL;
size_t optional_data_len = 0;
uint16_t pathlen;
- const unsigned char const *desc;
+ const unsigned char *desc;
char *raw;
size_t raw_len;
--- src/efibootmgr.c 2017-05-09 12:32:45.939316598 +0200
+++ src/efibootmgr.c 2017-05-09 12:34:02.281323682 +0200
@@ -221,7 +221,7 @@
list_t *pos;
var_entry_t *entry;
efi_load_option *load_option;
- const unsigned char const *desc;
+ const unsigned char *desc;
list_for_each(pos, var_list) {
entry = list_entry(pos, var_entry_t, list);
@@ -873,7 +873,7 @@
{
list_t *pos;
var_entry_t *boot;
- const unsigned char const *description;
+ const unsigned char *description;
efi_load_option *load_option;
efidp dp = NULL;
unsigned char *optional_data = NULL;