Blame SOURCES/efibootmgr-16-efidp_format_device_path-argfix.patch

84261a
diff -r -u -x .git ../efibootmgr-16.orig/src/efibootdump.c ./src/efibootdump.c
84261a
--- ../efibootmgr-16.orig/src/efibootdump.c	2018-04-09 15:38:51.000000000 -0500
84261a
+++ ./src/efibootdump.c	2020-08-06 15:27:27.679192698 -0500
84261a
@@ -67,8 +67,8 @@
84261a
 	text_path = alloca(text_path_len);
84261a
 	if (!text_path)
84261a
 		error(100, "Couldn't allocate memory");
84261a
-	rc = efidp_format_device_path(text_path, text_path_len,
84261a
-				      dp, pathlen);
84261a
+	rc = efidp_format_device_path((unsigned char *)text_path,
84261a
+				      text_path_len, dp, pathlen);
84261a
 	if (rc < 0) {
84261a
 		printf("<bad device path>");
84261a
 		return;
84261a
diff -r -u -x .git ../efibootmgr-16.orig/src/efibootmgr.c ./src/efibootmgr.c
84261a
--- ../efibootmgr-16.orig/src/efibootmgr.c	2018-04-09 15:38:51.000000000 -0500
84261a
+++ ./src/efibootmgr.c	2020-08-06 15:27:12.433089400 -0500
84261a
@@ -941,8 +941,8 @@
84261a
 			pathlen = efi_loadopt_pathlen(load_option,
84261a
 						      boot->data_size);
84261a
 			dp = efi_loadopt_path(load_option, boot->data_size);
84261a
-			rc = efidp_format_device_path(text_path, text_path_len,
84261a
-						      dp, pathlen);
84261a
+			rc = efidp_format_device_path((unsigned char *)text_path,
84261a
+						      text_path_len, dp, pathlen);
84261a
 			if (rc < 0)
84261a
 				error(18, "Could not parse device path");
84261a
 			rc += 1;
84261a
@@ -952,8 +952,8 @@
84261a
 			if (!text_path)
84261a
 				error(19, "Could not parse device path");
84261a
 
84261a
-			rc = efidp_format_device_path(text_path, text_path_len,
84261a
-						      dp, pathlen);
84261a
+			rc = efidp_format_device_path((unsigned char *)text_path,
84261a
+						      text_path_len, dp, pathlen);
84261a
 			if (rc < 0)
84261a
 				error(20, "Could not parse device path");
84261a
 			printf("\t%s", text_path);
84261a
diff -r -u -x .git ../efibootmgr-16.orig/src/eficonman.c ./src/eficonman.c
84261a
--- ../efibootmgr-16.orig/src/eficonman.c	2018-04-09 15:38:51.000000000 -0500
84261a
+++ ./src/eficonman.c	2020-08-06 15:08:19.614514403 -0500
84261a
@@ -76,7 +76,7 @@
84261a
 		dp = whole_dp;
84261a
 		while (dp) {
84261a
 			ssize_t sz, ssz;
84261a
-			char *s = NULL;
84261a
+			unsigned char *s = NULL;
84261a
 
84261a
 			if (efidp_is_multiinstance(dp)) {
84261a
 				sz = efidp_instance_size(dp);