Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
thattil committed Mar 24, 2023
1 parent 378fc30 commit 77c558a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions slsReceiverSoftware/src/Arping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

#include <chrono>
#include <signal.h>
#include <sys/wait.h>
#include <thread>
#include <unistd.h>
#include<sys/wait.h>

namespace sls {

Expand All @@ -17,9 +17,7 @@ namespace sls {
#define gettid() syscall(SYS_gettid)
#endif

void func(int signum) {
wait(NULL);
}
void func(int signum) { wait(NULL); }

Arping::Arping() {}

Expand Down Expand Up @@ -122,7 +120,8 @@ std::string Arping::ExecuteCommands() {
FILE *sysFile = popen(cmd.c_str(), "r");
if (sysFile == NULL) {
std::ostringstream os;
os << "Could not Arping (" << cmd << " ) : Popen fail (" << strerror(errno) << ')';
os << "Could not Arping (" << cmd << " ) : Popen fail ("
<< strerror(errno) << ')';
return os.str();
}

Expand All @@ -134,7 +133,7 @@ std::string Arping::ExecuteCommands() {
// check exit status of command
if (pclose(sysFile)) {
std::ostringstream os;
os << "Could not arping (" << cmd << ") : " << strerror(errno);
os << "Could not arping (" << cmd << ") : " << strerror(errno);
return os.str();
} else {
LOG(logDEBUG) << output;
Expand Down
2 changes: 1 addition & 1 deletion slsSupportLib/include/sls/versionAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
#define APIMOENCH "7.0.0 0x230222"
#define APIEIGER "7.0.0 0x230222"
#define APIRECEIVER "7.0.0 0x230222"
#define APILIB "7.0.1 0x230323"
#define APILIB "7.0.1 0x230323"

0 comments on commit 77c558a

Please sign in to comment.