From 1efacc9475eae77315785b244fc421452837e779 Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Tue, 3 Mar 2020 11:33:28 +0100 Subject: [PATCH] cleaning up headers --- slsReceiverSoftware/src/MultiReceiverApp.cpp | 11 ++--------- slsReceiverSoftware/src/ReceiverApp.cpp | 10 +--------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/slsReceiverSoftware/src/MultiReceiverApp.cpp b/slsReceiverSoftware/src/MultiReceiverApp.cpp index fc742ce42..a4ee1646c 100755 --- a/slsReceiverSoftware/src/MultiReceiverApp.cpp +++ b/slsReceiverSoftware/src/MultiReceiverApp.cpp @@ -4,18 +4,11 @@ #include "container_utils.h" #include //SIGINT -#include //system #include #include -#include -#include -#include //wait #include //wait #include //tid -#include //usleep #include -using namespace std; - /** Define Colors to print data call back in different colors for different recievers */ #define PRINT_IN_COLOR(c,f, ...) printf ("\033[%dm" f RESET, 30 + c+1, ##__VA_ARGS__) @@ -241,7 +234,7 @@ int main(int argc, char *argv[]) { /** - Print Ready and Instructions how to exit */ - cout << "Ready ... " << endl; + std::cout << "Ready ... \n"; cprintf(RESET, "\n[ Press \'Ctrl+c\' to exit ]\n"); /** - Parent process waits for all child processes to exit */ @@ -263,7 +256,7 @@ int main(int argc, char *argv[]) { cprintf(BLUE,"Exiting Child Process [ Tid: %ld ]\n", (long int) childPid); } - cout << "Goodbye!" << endl; + std::cout << "Goodbye!\n"; return 0; } diff --git a/slsReceiverSoftware/src/ReceiverApp.cpp b/slsReceiverSoftware/src/ReceiverApp.cpp index 81508059f..0a098de92 100755 --- a/slsReceiverSoftware/src/ReceiverApp.cpp +++ b/slsReceiverSoftware/src/ReceiverApp.cpp @@ -1,19 +1,11 @@ /* slsReceiver */ - #include "logger.h" #include "Receiver.h" #include "sls_detector_defs.h" #include "container_utils.h" -#include //SIGINT -#include //system -#include -#include -#include //wait -#include //wait +#include //SIGINT #include -#include //usleep -#include #include sem_t semaphore;