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

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

156
 	struct image *image;
156
 	struct image *image;
157
 	int rc;
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
 		return 1;
160
 		return 1;
161
 
161
 
162
 	/* Load image */
162
 	/* Load image */
180
 	struct image *image;
180
 	struct image *image;
181
 	int rc;
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
 		return 1;
184
 		return 1;
185
 
185
 
186
 	/* Mark image as an intird */
186
 	/* Mark image as an intird */

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

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

Loading…
Cancel
Save