Compare commits
No commits in common. 'c9' and 'i8' have entirely different histories.
@ -0,0 +1,25 @@
|
||||
From c5a465457d9a44d2745f6842359b875958dad55c Mon Sep 17 00:00:00 2001
|
||||
From: Sergey Cherevko <s.cherevko@msvsphere-os.ru>
|
||||
Date: Thu, 7 Dec 2023 11:19:05 +0300
|
||||
Subject: [PATCH] MSVSphere fix build
|
||||
|
||||
---
|
||||
Make.defaults | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Make.defaults b/Make.defaults
|
||||
index f4f3a9b..49ab709 100644
|
||||
--- a/Make.defaults
|
||||
+++ b/Make.defaults
|
||||
@@ -32,7 +32,7 @@ SUBDIR_CFLAGS ?=
|
||||
clang_cflags =
|
||||
gcc_cflags =
|
||||
cflags = $(CFLAGS) $(SUBDIR_CFLAGS) \
|
||||
- -Werror -Wall -Wextra -Wsign-compare -Wstrict-aliasing \
|
||||
+ -Wno-error=pointer-sign -Werror -Wall -Wextra -Wsign-compare -Wstrict-aliasing \
|
||||
-std=gnu11 -fPIC \
|
||||
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLOCALEDIR=\"$(localedir)\" \
|
||||
-DEFIBOOTMGR_VERSION="\"$(VERSION)\"" \
|
||||
--
|
||||
2.39.3
|
||||
|
@ -1,51 +0,0 @@
|
||||
diff -r -u -x .git ../efibootmgr-16.orig/src/efibootdump.c ./src/efibootdump.c
|
||||
--- ../efibootmgr-16.orig/src/efibootdump.c 2018-04-09 15:38:51.000000000 -0500
|
||||
+++ ./src/efibootdump.c 2020-08-06 15:27:27.679192698 -0500
|
||||
@@ -67,8 +67,8 @@
|
||||
text_path = alloca(text_path_len);
|
||||
if (!text_path)
|
||||
error(100, "Couldn't allocate memory");
|
||||
- rc = efidp_format_device_path(text_path, text_path_len,
|
||||
- dp, pathlen);
|
||||
+ rc = efidp_format_device_path((unsigned char *)text_path,
|
||||
+ text_path_len, dp, pathlen);
|
||||
if (rc < 0) {
|
||||
printf("<bad device path>");
|
||||
return;
|
||||
diff -r -u -x .git ../efibootmgr-16.orig/src/efibootmgr.c ./src/efibootmgr.c
|
||||
--- ../efibootmgr-16.orig/src/efibootmgr.c 2018-04-09 15:38:51.000000000 -0500
|
||||
+++ ./src/efibootmgr.c 2020-08-06 15:27:12.433089400 -0500
|
||||
@@ -941,8 +941,8 @@
|
||||
pathlen = efi_loadopt_pathlen(load_option,
|
||||
boot->data_size);
|
||||
dp = efi_loadopt_path(load_option, boot->data_size);
|
||||
- rc = efidp_format_device_path(text_path, text_path_len,
|
||||
- dp, pathlen);
|
||||
+ rc = efidp_format_device_path((unsigned char *)text_path,
|
||||
+ text_path_len, dp, pathlen);
|
||||
if (rc < 0)
|
||||
error(18, "Could not parse device path");
|
||||
rc += 1;
|
||||
@@ -952,8 +952,8 @@
|
||||
if (!text_path)
|
||||
error(19, "Could not parse device path");
|
||||
|
||||
- rc = efidp_format_device_path(text_path, text_path_len,
|
||||
- dp, pathlen);
|
||||
+ rc = efidp_format_device_path((unsigned char *)text_path,
|
||||
+ text_path_len, dp, pathlen);
|
||||
if (rc < 0)
|
||||
error(20, "Could not parse device path");
|
||||
printf("\t%s", text_path);
|
||||
diff -r -u -x .git ../efibootmgr-16.orig/src/eficonman.c ./src/eficonman.c
|
||||
--- ../efibootmgr-16.orig/src/eficonman.c 2018-04-09 15:38:51.000000000 -0500
|
||||
+++ ./src/eficonman.c 2020-08-06 15:08:19.614514403 -0500
|
||||
@@ -76,7 +76,7 @@
|
||||
dp = whole_dp;
|
||||
while (dp) {
|
||||
ssize_t sz, ssz;
|
||||
- char *s = NULL;
|
||||
+ unsigned char *s = NULL;
|
||||
|
||||
if (efidp_is_multiinstance(dp)) {
|
||||
sz = efidp_instance_size(dp);
|
Loading…
Reference in new issue