mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +03:00
fetch() now knows nothing about struct image; it simply loads a file and
returns the allocated buffer.
This commit is contained in:
@@ -54,7 +54,7 @@ int imgfetch ( const char *filename, const char *name,
|
||||
strncpy ( image->name, name, ( sizeof ( image->name ) - 1 ) );
|
||||
|
||||
/* Fetch the file */
|
||||
if ( ( rc = fetch ( image, filename ) ) != 0 )
|
||||
if ( ( rc = fetch ( filename, &image->data, &image->len ) ) != 0 )
|
||||
goto err;
|
||||
|
||||
/* Register the image */
|
||||
|
||||
Reference in New Issue
Block a user