summaryrefslogtreecommitdiff
path: root/src/tools/servomatic_cli.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-03-12 22:29:20 +0000
committerCarl Hetherington <cth@carlh.net>2013-03-12 22:29:20 +0000
commit2f7180555f2d8b727bde21613fc2474bb4f7664c (patch)
tree791291da76fbcf31ce62f72d1a540b67ca20b4f3 /src/tools/servomatic_cli.cc
parent1895cfd9642f53dd4ea83e53a655f93c8a65b37e (diff)
parent7d262f9be3a4c5d8da07dce42f7e2da708f6c7f4 (diff)
Merge branch 'master' of /home/carl/git/dvdomatic
Diffstat (limited to 'src/tools/servomatic_cli.cc')
-rw-r--r--src/tools/servomatic_cli.cc9
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;
}