[image] Remove userptr_t from image definition

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-04-22 12:20:26 +01:00
parent e98b84f1b9
commit b89a34b07f
4 changed files with 10 additions and 8 deletions

View File

@@ -218,7 +218,7 @@ int image_set_cmdline ( struct image *image, const char *cmdline ) {
* @ret rc Return status code
*/
int image_set_len ( struct image *image, size_t len ) {
userptr_t new;
void *new;
/* (Re)allocate image data */
new = urealloc ( image->data, len );
@@ -238,7 +238,7 @@ int image_set_len ( struct image *image, size_t len ) {
* @v len Length of image data
* @ret rc Return status code
*/
int image_set_data ( struct image *image, userptr_t data, size_t len ) {
int image_set_data ( struct image *image, const void *data, size_t len ) {
int rc;
/* Set image length */
@@ -566,7 +566,8 @@ int image_set_trust ( int require_trusted, int permanent ) {
* @v len Length
* @ret image Image, or NULL on error
*/
struct image * image_memory ( const char *name, userptr_t data, size_t len ) {
struct image * image_memory ( const char *name, const void *data,
size_t len ) {
struct image *image;
int rc;