summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Main.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/Main.cc b/src/Main.cc
index f3bf0d7..d4692a1 100644
--- a/src/Main.cc
+++ b/src/Main.cc
@@ -24,17 +24,8 @@ class InPipe : public Handle {
int m_out;
} * in;
-extern Action * MenuAdmin, * MenuGestionMatos, * MenuGestionChantier, * MenuGestionPieces, * MenuGestionFournisseurs, * MenuInterventions, * MenuGestionLocations;
-Action * ListeMenuPrincipal[] = {MenuAdmin, MenuGestionMatos, MenuGestionChantier, MenuGestionPieces, MenuGestionFournisseurs, MenuInterventions, MenuGestionLocations};
-String MenuPrincipalLabels[] = {"Administration", "Gestion du materiel", "Gestion des chantiers", "Gestion du stock de pièces", "Gestion des fournisseurs", "Interventions", "Locations"};
-
-Action * buildmenu(void) {
- return new Menu("Menu Principal", "start", MenuPrincipalLabels, ListeMenuPrincipal, 7);
-}
-
int main(int argc, char ** argv) {
int p[2], c;
- String port = "1500";
if (pipe(p)) {
cerr << "Error creating pipe.\n";
@@ -57,7 +48,6 @@ int main(int argc, char ** argv) {
while ((c = getopt(argc, argv, "p:")) != EOF) {
switch (c) {
case 'p':
- port = optarg;
break;
default:
cerr << "Usage: " << argv[0] << " [-p port]\n";
@@ -66,12 +56,10 @@ int main(int argc, char ** argv) {
}
try {
- HttpServ h(port.to_int());
-
- h.MainLoop(buildmenu());
}
catch (GeneralException e) {
cerr << e.GetMsg() << endl;
+ delete in;
exit(-1);
}