mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 02:54:47 +00:00
trivial: uefi: fix a signed vs unsigned issue
This started popping up in Arch CI: ../fwupd/plugins/uefi/fu-uefi-vars.c: In function ‘fu_uefi_vars_get_data’: ../fwupd/plugins/uefi/fu-uefi-vars.c:233:9: error: pointer targets in assignment from ‘gchar *’ {aka ‘char *’} to ‘guint8 *’ {aka ‘unsigned char *’} differ in signedness [-Werror=pointer-sign] *data = g_steal_pointer (&data_tmp); ^
This commit is contained in:
parent
9d3f791727
commit
4e0bb5d5c9
@ -224,7 +224,7 @@ fu_uefi_vars_get_data (const gchar *guid, const gchar *name, guint8 **data,
|
|||||||
if (data_sz != NULL)
|
if (data_sz != NULL)
|
||||||
*data_sz = data_sz_tmp;
|
*data_sz = data_sz_tmp;
|
||||||
if (data != NULL) {
|
if (data != NULL) {
|
||||||
g_autofree gchar *data_tmp = g_malloc0 (data_sz_tmp);
|
g_autofree guint8 *data_tmp = g_malloc0 (data_sz_tmp);
|
||||||
if (!g_input_stream_read_all (istr, data_tmp, data_sz_tmp,
|
if (!g_input_stream_read_all (istr, data_tmp, data_sz_tmp,
|
||||||
NULL, NULL, error)) {
|
NULL, NULL, error)) {
|
||||||
g_prefix_error (error, "failed to read data: ");
|
g_prefix_error (error, "failed to read data: ");
|
||||||
|
Loading…
Reference in New Issue
Block a user