diff options
| author | Michael Brown | 2007-01-12 08:22:20 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-12 08:22:20 +0100 |
| commit | f135a37f3050a40ad5399e150169ba6b880fe47d (patch) | |
| tree | ae82ed4470bf1f0b09b23fbc8018541ed07735cb /src/usr/fetch.c | |
| parent | Add free_image (diff) | |
| download | ipxe-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.c | 7 |
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; |
