mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 00:00:02 +02:00
functions not overriding base and unitialized use
This commit is contained in:
parent
c6a597c3ec
commit
1bd0b33806
@ -2606,7 +2606,7 @@ std::string slsDetectorCommand::helpThreaded(int action) {
|
||||
|
||||
std::string slsDetectorCommand::cmdImage(int narg, char *args[], int action, int detPos) {
|
||||
std::string sval;
|
||||
int retval;
|
||||
int retval = FAIL;
|
||||
if (action == HELP_ACTION)
|
||||
return helpImage(HELP_ACTION);
|
||||
else if (action == GET_ACTION)
|
||||
@ -2643,7 +2643,7 @@ std::string slsDetectorCommand::cmdCounter(int narg, char *args[], int action, i
|
||||
int ival;
|
||||
char answer[100];
|
||||
std::string sval;
|
||||
int retval;
|
||||
int retval = FAIL;
|
||||
if (action == HELP_ACTION)
|
||||
return helpCounter(HELP_ACTION);
|
||||
else if (action == PUT_ACTION)
|
||||
|
@ -47,7 +47,7 @@ class BinaryFile : private virtual slsDetectorDefs, public File, public BinaryFi
|
||||
/**
|
||||
* Print all member values
|
||||
*/
|
||||
void PrintMembers();
|
||||
void PrintMembers(TLogLevel level = logDEBUG1);
|
||||
|
||||
/**
|
||||
* Create file
|
||||
|
@ -31,8 +31,8 @@ BinaryFile::~BinaryFile() {
|
||||
CloseAllFiles();
|
||||
}
|
||||
|
||||
void BinaryFile::PrintMembers() {
|
||||
File::PrintMembers();
|
||||
void BinaryFile::PrintMembers(TLogLevel level) {
|
||||
File::PrintMembers(level);
|
||||
FILE_LOG(logINFO) << "Max Frames Per File: " << *maxFramesPerFile;
|
||||
FILE_LOG(logINFO) << "Number of Frames in File: " << numFramesInFile;
|
||||
}
|
||||
|
@ -705,8 +705,8 @@ int slsReceiverTCPIPInterface::set_roi() {
|
||||
int slsReceiverTCPIPInterface::setup_udp(){
|
||||
ret = OK;
|
||||
memset(mess, 0, sizeof(mess));
|
||||
char args[3][MAX_STR_LENGTH] = {0};
|
||||
char retvals[MAX_STR_LENGTH] = {0};
|
||||
char args[3][MAX_STR_LENGTH] = {{""}, {""}, {""}};
|
||||
char retvals[MAX_STR_LENGTH] = {""};
|
||||
|
||||
// get args, return if socket crashed, ret is fail if receiver is not null
|
||||
if (interface->Server_ReceiveArg(ret, mess, args, sizeof(args), true, receiver) == FAIL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user