diff options
author | Pixel <Pixel> | 2001-09-20 23:33:47 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-09-20 23:33:47 +0000 |
commit | 91829aee248a07868196b9ae0dafd42e3e7b3e7f (patch) | |
tree | ac62466b7bed3c83b5041614151079fff4dcce26 /src/Main.cc | |
parent | deb335b3d250479927ca6bc67a9a40223f2c48e9 (diff) |
First bugfixes
Diffstat (limited to 'src/Main.cc')
-rw-r--r-- | src/Main.cc | 14 |
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); } |