aboutsummaryrefslogtreecommitdiffstats
path: root/menu/simple.c
diff options
context:
space:
mode:
authorhpa <hpa>2004-02-03 05:42:25 +0000
committerhpa <hpa>2004-02-03 05:42:25 +0000
commitdfd8bb83c7fd3f0d8c3b0caf6335d376c55732d1 (patch)
treed0021ca8fe28a76d3e680033997127426953151e /menu/simple.c
parent5e4b11cb257f5137062690473ec3fe79a928141b (diff)
downloadsyslinux-elf-dfd8bb83c7fd3f0d8c3b0caf6335d376c55732d1.tar.gz
syslinux-elf-dfd8bb83c7fd3f0d8c3b0caf6335d376c55732d1.tar.xz
syslinux-elf-dfd8bb83c7fd3f0d8c3b0caf6335d376c55732d1.zip
Make it all work better... remove use of DOS routines while expecting
attributes to be unchanged; create a wrapper routine for start.
Diffstat (limited to 'menu/simple.c')
-rw-r--r--menu/simple.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/menu/simple.c b/menu/simple.c
index 13c14800..7870a94e 100644
--- a/menu/simple.c
+++ b/menu/simple.c
@@ -19,10 +19,9 @@
#include "string.h"
#include "syslinux.h"
-int syslinux;
char TESTING,RESCUE,MAIN,PREP;
-int main(void)
+int menumain(void)
{
t_menuitem * curr;
@@ -60,9 +59,6 @@ int main(void)
add_item("Testing...","Options to test hardware",OPT_SUBMENU,NULL,TESTING);
add_item("Exit to prompt", "Exit the menu system", OPT_EXITMENU, "exit", 0);
- syslinux = issyslinux(); // Find if syslinux is running
-
- if (syslinux) gototxtmode(); // Else assume we are running in a DOS box
curr = showmenus(MAIN); // Initial menu is the one with index MAIN
if (curr)
{
@@ -73,7 +69,7 @@ int main(void)
else csprint(curr->data);
return 1;
}
- sprint("Error in programming!$"); // Must be $ terminated
+ csprint("Error in programming!");
}
return 0;
}