diff --git a/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp b/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp index d6aa07ac4..bb13a3609 100644 --- a/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp @@ -4397,7 +4397,7 @@ std::string slsDetectorCommand::cmdTimeLeft(int narg, char *args[], int action, ret = myDet->getTimeLeft(index, detPos); if ((ret != -1) && (index == ACQUISITION_TIME || index == FRAME_PERIOD || index == DELAY_AFTER_TRIGGER || index == ACTUAL_TIME || index == MEASUREMENT_TIME || - MEASURED_PERIOD || MEASURED_SUBPERIOD)) + index == MEASURED_PERIOD || index == MEASURED_SUBPERIOD)) rval = (double)ret * 1E-9; else rval = ret; diff --git a/slsReceiverSoftware/src/slsReceiverTCPIPInterface.cpp b/slsReceiverSoftware/src/slsReceiverTCPIPInterface.cpp index 833006a46..f2550ee6c 100644 --- a/slsReceiverSoftware/src/slsReceiverTCPIPInterface.cpp +++ b/slsReceiverSoftware/src/slsReceiverTCPIPInterface.cpp @@ -421,7 +421,7 @@ int slsReceiverTCPIPInterface::set_port() { try { mySocket = new MySocketTCP(p_number); strcpy(mySock->lastClientIP,oldLastClientIP); - } catch(SamePortSocketException e) { + } catch(SamePortSocketException &e) { ret = FAIL; sprintf(mess, "Could not bind port %d. It is already set\n", p_number); FILE_LOG(logERROR) << mess;