diff options
author | Michael Brown | 2007-01-12 09:02:27 +0100 |
---|---|---|
committer | Michael Brown | 2007-01-12 09:02:27 +0100 |
commit | 475d6d1f7c7f169a89ea363ad819b0dd2975ae10 (patch) | |
tree | 000239996a57f863fb56326ed137bf85c3517934 /src/usr/imgmgmt.c | |
parent | Allow "imgexec" with no arguments to boot the file that was loaded with (diff) | |
download | ipxe-475d6d1f7c7f169a89ea363ad819b0dd2975ae10.tar.gz ipxe-475d6d1f7c7f169a89ea363ad819b0dd2975ae10.tar.xz ipxe-475d6d1f7c7f169a89ea363ad819b0dd2975ae10.zip |
fetch() now knows nothing about struct image; it simply loads a file and
returns the allocated buffer.
Diffstat (limited to 'src/usr/imgmgmt.c')
-rw-r--r-- | src/usr/imgmgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/imgmgmt.c b/src/usr/imgmgmt.c index 2c949ae2..6a2599d5 100644 --- a/src/usr/imgmgmt.c +++ b/src/usr/imgmgmt.c @@ -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 */ |