aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules/elf.c
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@linux.intel.com>2011-04-08 13:52:30 +0100
committerMatt Fleming <matt.fleming@linux.intel.com>2011-04-26 09:53:19 +0100
commitc6f10fb1b9b4f56fa6d7b6b73e1fdef96b63d912 (patch)
treefd505e4edf26645dad9b2a9cf27e05d12c0bc5db /com32/modules/elf.c
parent90d5044ba28432921ca1f9ce393e9e8771d20274 (diff)
downloadsyslinux-c6f10fb1b9b4f56fa6d7b6b73e1fdef96b63d912.tar.gz
syslinux-c6f10fb1b9b4f56fa6d7b6b73e1fdef96b63d912.tar.xz
syslinux-c6f10fb1b9b4f56fa6d7b6b73e1fdef96b63d912.zip
com32: console is already initialised when we enter main()
There's no need to initialise the console when we enter main() as ldlinux.c32 will already have initialised it for us. Leaving the calls to openconsole() causes the console settings to be reset whenever we run a module. Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
Diffstat (limited to 'com32/modules/elf.c')
-rw-r--r--com32/modules/elf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/com32/modules/elf.c b/com32/modules/elf.c
index 182afa60..84c80ac2 100644
--- a/com32/modules/elf.c
+++ b/com32/modules/elf.c
@@ -269,8 +269,6 @@ int main(int argc, char *argv[])
void *data;
size_t data_len;
- openconsole(&dev_null_r, &dev_stdcon_w);
-
if (argc < 2) {
error("Usage: elf.c32 elf_file arguments...\n");
return 1;