summaryrefslogtreecommitdiffstats
path: root/src/usr/fetch.c
diff options
context:
space:
mode:
authorMichael Brown2007-01-12 08:22:20 +0100
committerMichael Brown2007-01-12 08:22:20 +0100
commitf135a37f3050a40ad5399e150169ba6b880fe47d (patch)
treeae82ed4470bf1f0b09b23fbc8018541ed07735cb /src/usr/fetch.c
parentAdd free_image (diff)
downloadipxe-f135a37f3050a40ad5399e150169ba6b880fe47d.tar.gz
ipxe-f135a37f3050a40ad5399e150169ba6b880fe47d.tar.xz
ipxe-f135a37f3050a40ad5399e150169ba6b880fe47d.zip
Cleaner separation between imgXXX() functions and image_cmd.c
Diffstat (limited to 'src/usr/fetch.c')
-rw-r--r--src/usr/fetch.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/usr/fetch.c b/src/usr/fetch.c
index f7f3a771e..001731845 100644
--- a/src/usr/fetch.c
+++ b/src/usr/fetch.c
@@ -23,7 +23,6 @@
*
*/
-#include <libgen.h>
#include <vsprintf.h>
#include <gpxe/emalloc.h>
#include <gpxe/ebuffer.h>
@@ -45,12 +44,6 @@ int fetch ( struct image *image, const char *filename ) {
struct buffer buffer;
int rc;
- /* Name the image, if it isn't explicitly named */
- if ( ! image->name[0] ) {
- strncpy ( image->name, basename ( filename ),
- ( sizeof ( image->name ) - 1 ) );
- }
-
/* Allocate an expandable buffer to hold the file */
if ( ( rc = ebuffer_alloc ( &buffer, 0 ) ) != 0 )
return rc;