mirror of
https://github.com/ipxe/ipxe
synced 2026-01-28 20:12:28 +03:00
[image] Remove userptr_t from image definition
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user