diff options
| author | Michael Brown | 2010-07-14 12:17:26 +0200 |
|---|---|---|
| committer | Michael Brown | 2010-07-14 12:17:26 +0200 |
| commit | d15ce77267b9032b921dd42eafe673ad554b06af (patch) | |
| tree | 349d6cb4cfafff25615fa3161a5d87ca4aaffe00 /src | |
| parent | [tcp] Randomise local TCP port (diff) | |
| download | ipxe-d15ce77267b9032b921dd42eafe673ad554b06af.tar.gz ipxe-d15ce77267b9032b921dd42eafe673ad554b06af.tar.xz ipxe-d15ce77267b9032b921dd42eafe673ad554b06af.zip | |
[cmdline] Fix inconsistent and ugly code formatting in shell_banner()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/hci/shell_banner.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hci/shell_banner.c b/src/hci/shell_banner.c index 8d2a5d0c7..07c0fa4aa 100644 --- a/src/hci/shell_banner.c +++ b/src/hci/shell_banner.c @@ -41,10 +41,11 @@ int shell_banner ( void ) { int wait_count; int key; - if ( BANNER_TIMEOUT <= 0 ) { - return enter_shell; - } + /* Skip prompt if timeout is zero */ + if ( BANNER_TIMEOUT <= 0 ) + return 0; + /* Display prompt */ printf ( "\nPress Ctrl-B for the iPXE command line..." ); /* Wait for key */ |
