diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-03-08 21:03:28 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-03-08 21:03:28 +0000 |
| commit | bb95f333f15ace7c032bb5b5761b512b6fe2e84e (patch) | |
| tree | d9486a34d1980804ceb9b2203e46de1bdf3bf9d8 /src/tools/servomatic_cli.cc | |
| parent | 8af3fc82eb7d5955b09d94e1cc142f6a3adcf370 (diff) | |
Numerous fixes to A/B mode so that at least it doesn't crash (#72).
Diffstat (limited to 'src/tools/servomatic_cli.cc')
| -rw-r--r-- | src/tools/servomatic_cli.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tools/servomatic_cli.cc b/src/tools/servomatic_cli.cc index f8e713193..6626d45b9 100644 --- a/src/tools/servomatic_cli.cc +++ b/src/tools/servomatic_cli.cc @@ -42,7 +42,10 @@ #include "log.h" #include "version.h" -using namespace std; +using std::cerr; +using std::string; +using std::cout; +using boost::shared_ptr; static void help (string n) @@ -87,8 +90,8 @@ main (int argc, char* argv[]) } Scaler::setup_scalers (); - FileLog log ("servomatic.log"); - Server server (&log); + shared_ptr<FileLog> log (new FileLog ("servomatic.log")); + Server server (log); server.run (num_threads); return 0; } |
