summaryrefslogtreecommitdiffstats
path: root/src/interface/efi
diff options
context:
space:
mode:
authorMichael Brown2025-04-20 14:39:32 +0200
committerMichael Brown2025-04-20 18:21:53 +0200
commit71174e19d8c93dc99221c5fe32db6a78c6a7ffb3 (patch)
treeb3cc53e39f65fb6fb9ae0da4aba13b60c3f48e55 /src/interface/efi
parent[uaccess] Rename userptr_sub() to userptr_diff() (diff)
downloadipxe-71174e19d8c93dc99221c5fe32db6a78c6a7ffb3.tar.gz
ipxe-71174e19d8c93dc99221c5fe32db6a78c6a7ffb3.tar.xz
ipxe-71174e19d8c93dc99221c5fe32db6a78c6a7ffb3.zip
[uaccess] Add explicit casts to and from userptr_t where needed
Allow for the possibility of userptr_t becoming a pointer type by adding explicit casts where necessary. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/efi')
-rw-r--r--src/interface/efi/efi_umalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/efi/efi_umalloc.c b/src/interface/efi/efi_umalloc.c
index e3f1dacc2..175ae367e 100644
--- a/src/interface/efi/efi_umalloc.c
+++ b/src/interface/efi/efi_umalloc.c
@@ -36,7 +36,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
*/
/** Equivalent of NOWHERE for user pointers */
-#define UNOWHERE ( ~UNULL )
+#define UNOWHERE ( ( userptr_t ) ~( ( intptr_t ) 0 ) )
/**
* Reallocate external memory