diff options
author | Pixel <Pixel> | 2002-06-04 13:42:36 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2002-06-04 13:42:36 +0000 |
commit | 6cc9c2c329b00c51f399e5b040a4d4a1d1213ecd (patch) | |
tree | 43cdef5700f65c9f90165590ef582988bb02ed98 /src/Main.cc | |
parent | 6be21a3b278d3bb3f8ac4176f923d42dfb9b1e12 (diff) |
gcc-3.1
Diffstat (limited to 'src/Main.cc')
-rw-r--r-- | src/Main.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Main.cc b/src/Main.cc index caba9b6..d70c310 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -1,5 +1,5 @@ #include <unistd.h> -#include <list.h> +#include <list> #include <sys/types.h> #include <sys/wait.h> #include "Handle.h" @@ -145,7 +145,7 @@ int main(int argc, char ** argv) { int c; String port = "1500"; - list<String> testlist; + std::list<String> testlist; testlist.push_front("poide"); in = new InPipe(); @@ -153,11 +153,11 @@ int main(int argc, char ** argv) { in->Hook(); String test = "poide\n", r; - cout << test; - cout.flush(); + std::cout << test; + std::cout.flush(); (*in) >> r; if (r != "poide") { - cerr << "The stdout redirect has failed.\n"; + std::cerr << "The stdout redirect has failed.\n"; exit(-1); } @@ -167,7 +167,7 @@ int main(int argc, char ** argv) { port = optarg; break; default: - cerr << "Usage: " << argv[0] << " [-p port]\n"; + std::cerr << "Usage: " << argv[0] << " [-p port]\n"; exit(-1); } } @@ -180,12 +180,12 @@ int main(int argc, char ** argv) { TaskMan::MainLoop(); } catch (GeneralException e) { - cerr << "Main function got an exception: '" << e.GetMsg() << "'.\n"; + std::cerr << "Main function got an exception: '" << e.GetMsg() << "'.\n"; exit(-1); } catch (...) { - cerr << "Unknow exception.\n" << endl; + std::cerr << "Unknow exception.\n" << std::endl; exit(-1); } |