efibootmgr: fix gcc-7.1.0 build (duplicate const)
This commit is contained in:
parent
c958ddb2f9
commit
5000e2de32
1 changed files with 31 additions and 0 deletions
31
srcpkgs/efibootmgr/patches/gcc7-duplicate-const.patch
Normal file
31
srcpkgs/efibootmgr/patches/gcc7-duplicate-const.patch
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
--- 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;
|
Loading…
Add table
Add a link
Reference in a new issue