mirror of
https://github.com/ipxe/ipxe
synced 2026-01-30 04:58:12 +03:00
[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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user