mirror of https://github.com/ipxe/ipxe.git
Typo
parent
5578d3b2de
commit
160e66dbb9
|
@ -91,7 +91,7 @@ int pxe_load ( struct image *image ) {
|
||||||
image->type = &pxe_image_type;
|
image->type = &pxe_image_type;
|
||||||
|
|
||||||
/* Verify and prepare segment */
|
/* Verify and prepare segment */
|
||||||
if ( ( rc = prep_segment ( buffer, filesz, memsz ) != 0 ) ) {
|
if ( ( rc = prep_segment ( buffer, filesz, memsz ) ) != 0 ) {
|
||||||
DBG ( "PXE image could not prepare segment: %s\n",
|
DBG ( "PXE image could not prepare segment: %s\n",
|
||||||
strerror ( rc ) );
|
strerror ( rc ) );
|
||||||
return rc;
|
return rc;
|
||||||
|
|
|
@ -156,7 +156,7 @@ static int kernel_exec ( int argc, char **argv ) {
|
||||||
struct image *image;
|
struct image *image;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if ( ( rc = imgfetch_core_exec ( argc, argv, 1, &image ) != 0 ) )
|
if ( ( rc = imgfetch_core_exec ( argc, argv, 1, &image ) ) != 0 )
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* Load image */
|
/* Load image */
|
||||||
|
@ -180,7 +180,7 @@ static int initrd_exec ( int argc, char **argv ) {
|
||||||
struct image *image;
|
struct image *image;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if ( ( rc = imgfetch_core_exec ( argc, argv, 0, &image ) != 0 ) )
|
if ( ( rc = imgfetch_core_exec ( argc, argv, 0, &image ) ) != 0 )
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* Mark image as an intird */
|
/* Mark image as an intird */
|
||||||
|
|
|
@ -82,12 +82,12 @@ void netboot ( struct net_device *netdev ) {
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
/* Open device and display device status */
|
/* Open device and display device status */
|
||||||
if ( ( rc = ifopen ( netdev ) != 0 ) )
|
if ( ( rc = ifopen ( netdev ) ) != 0 )
|
||||||
return;
|
return;
|
||||||
ifstat ( netdev );
|
ifstat ( netdev );
|
||||||
|
|
||||||
/* Configure device via DHCP */
|
/* Configure device via DHCP */
|
||||||
if ( ( rc = dhcp ( netdev ) != 0 ) )
|
if ( ( rc = dhcp ( netdev ) ) != 0 )
|
||||||
return;
|
return;
|
||||||
route();
|
route();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue