Small fixes and tidy-ups spotted by cppcheck.
[dcpomatic.git] / src / tools / dcpomatic_server_cli.cc
index c74e258e8ff081680f3b799f354c5ee344ad937c..80f4a0d0c339677dd46a528a2f171cad5e23ba01 100644 (file)
@@ -20,7 +20,6 @@
 #include "lib/server.h"
 #include <iostream>
 #include <stdexcept>
-#include <sstream>
 #include <cstring>
 #include <vector>
 #include <unistd.h>
@@ -113,7 +112,7 @@ main (int argc, char* argv[])
        
        try {
                server.run (num_threads);
-       } catch (boost::system::system_error e) {
+       } catch (boost::system::system_error& e) {
                if (e.code() == boost::system::errc::address_in_use) {
                        cerr << argv[0] << ": address already in use.  Is another DCP-o-matic server instance already running?\n";
                        exit (EXIT_FAILURE);