ソースを参照

[cmdline] Fix inconsistent and ugly code formatting in shell_banner()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14年前
コミット
d15ce77267
1個のファイルの変更4行の追加3行の削除
  1. 4
    3
      src/hci/shell_banner.c

+ 4
- 3
src/hci/shell_banner.c ファイルの表示

@@ -41,10 +41,11 @@ int shell_banner ( void ) {
41 41
 	int wait_count;
42 42
 	int key;
43 43
 
44
-	if ( BANNER_TIMEOUT <=  0 ) {
45
-		return enter_shell;
46
-	}
44
+	/* Skip prompt if timeout is zero */
45
+	if ( BANNER_TIMEOUT <= 0 )
46
+		return 0;
47 47
 
48
+	/* Display prompt */
48 49
 	printf ( "\nPress Ctrl-B for the iPXE command line..." );
49 50
 
50 51
 	/* Wait for key */

読み込み中…
キャンセル
保存