Browse Source

Typo

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
160e66dbb9
3 changed files with 5 additions and 5 deletions
  1. 1
    1
      src/arch/i386/image/pxe_image.c
  2. 2
    2
      src/hci/commands/image_cmd.c
  3. 2
    2
      src/usr/autoboot.c

+ 1
- 1
src/arch/i386/image/pxe_image.c View File

@@ -91,7 +91,7 @@ int pxe_load ( struct image *image ) {
91 91
 		image->type = &pxe_image_type;
92 92
 
93 93
 	/* Verify and prepare segment */
94
-	if ( ( rc = prep_segment ( buffer, filesz, memsz ) != 0 ) ) {
94
+	if ( ( rc = prep_segment ( buffer, filesz, memsz ) ) != 0 ) {
95 95
 		DBG ( "PXE image could not prepare segment: %s\n",
96 96
 		      strerror ( rc ) );
97 97
 		return rc;

+ 2
- 2
src/hci/commands/image_cmd.c View File

@@ -156,7 +156,7 @@ static int kernel_exec ( int argc, char **argv ) {
156 156
 	struct image *image;
157 157
 	int rc;
158 158
 
159
-	if ( ( rc = imgfetch_core_exec ( argc, argv, 1, &image ) != 0 ) )
159
+	if ( ( rc = imgfetch_core_exec ( argc, argv, 1, &image ) ) != 0 )
160 160
 		return 1;
161 161
 
162 162
 	/* Load image */
@@ -180,7 +180,7 @@ static int initrd_exec ( int argc, char **argv ) {
180 180
 	struct image *image;
181 181
 	int rc;
182 182
 
183
-	if ( ( rc = imgfetch_core_exec ( argc, argv, 0, &image ) != 0 ) )
183
+	if ( ( rc = imgfetch_core_exec ( argc, argv, 0, &image ) ) != 0 )
184 184
 		return 1;
185 185
 
186 186
 	/* Mark image as an intird */

+ 2
- 2
src/usr/autoboot.c View File

@@ -82,12 +82,12 @@ void netboot ( struct net_device *netdev ) {
82 82
 	int rc;
83 83
 
84 84
 	/* Open device and display device status */
85
-	if ( ( rc = ifopen ( netdev ) != 0 ) )
85
+	if ( ( rc = ifopen ( netdev ) ) != 0 )
86 86
 		return;
87 87
 	ifstat ( netdev );
88 88
 
89 89
 	/* Configure device via DHCP */
90
-	if ( ( rc = dhcp ( netdev ) != 0 ) )
90
+	if ( ( rc = dhcp ( netdev ) ) != 0 )
91 91
 		return;
92 92
 	route();
93 93
 

Loading…
Cancel
Save