summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2007-03-20 19:55:00 +0100
committerMichael Brown2007-03-20 19:55:00 +0100
commit160e66dbb91359346740ae782da965ec35aef7bb (patch)
treede5ed8f9007b306e903a6c7463dbd15be54548aa
parentSupport 32-bit (linear) NBI images. We don't yet provide a bootp data (diff)
downloadipxe-160e66dbb91359346740ae782da965ec35aef7bb.tar.gz
ipxe-160e66dbb91359346740ae782da965ec35aef7bb.tar.xz
ipxe-160e66dbb91359346740ae782da965ec35aef7bb.zip
Typo
-rw-r--r--src/arch/i386/image/pxe_image.c2
-rw-r--r--src/hci/commands/image_cmd.c4
-rw-r--r--src/usr/autoboot.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/arch/i386/image/pxe_image.c b/src/arch/i386/image/pxe_image.c
index 27a7e42d..8db34d5f 100644
--- a/src/arch/i386/image/pxe_image.c
+++ b/src/arch/i386/image/pxe_image.c
@@ -91,7 +91,7 @@ int pxe_load ( struct image *image ) {
image->type = &pxe_image_type;
/* 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",
strerror ( rc ) );
return rc;
diff --git a/src/hci/commands/image_cmd.c b/src/hci/commands/image_cmd.c
index 98de50e2..e1e22e3f 100644
--- a/src/hci/commands/image_cmd.c
+++ b/src/hci/commands/image_cmd.c
@@ -156,7 +156,7 @@ static int kernel_exec ( int argc, char **argv ) {
struct image *image;
int rc;
- if ( ( rc = imgfetch_core_exec ( argc, argv, 1, &image ) != 0 ) )
+ if ( ( rc = imgfetch_core_exec ( argc, argv, 1, &image ) ) != 0 )
return 1;
/* Load image */
@@ -180,7 +180,7 @@ static int initrd_exec ( int argc, char **argv ) {
struct image *image;
int rc;
- if ( ( rc = imgfetch_core_exec ( argc, argv, 0, &image ) != 0 ) )
+ if ( ( rc = imgfetch_core_exec ( argc, argv, 0, &image ) ) != 0 )
return 1;
/* Mark image as an intird */
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c
index 0e606efb..5d017229 100644
--- a/src/usr/autoboot.c
+++ b/src/usr/autoboot.c
@@ -82,12 +82,12 @@ void netboot ( struct net_device *netdev ) {
int rc;
/* Open device and display device status */
- if ( ( rc = ifopen ( netdev ) != 0 ) )
+ if ( ( rc = ifopen ( netdev ) ) != 0 )
return;
ifstat ( netdev );
/* Configure device via DHCP */
- if ( ( rc = dhcp ( netdev ) != 0 ) )
+ if ( ( rc = dhcp ( netdev ) ) != 0 )
return;
route();