cleaning up headers

This commit is contained in:
Erik Frojdh
2020-03-03 11:33:28 +01:00
parent b2d88b441a
commit 1efacc9475
2 changed files with 3 additions and 18 deletions

View File

@ -4,18 +4,11 @@
#include "container_utils.h"
#include <csignal> //SIGINT
#include <cstdlib> //system
#include <cstring>
#include <iostream>
#include <cerrno>
#include <string>
#include <sys/types.h> //wait
#include <sys/wait.h> //wait
#include <syscall.h> //tid
#include <unistd.h> //usleep
#include <semaphore.h>
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;
}

View File

@ -1,19 +1,11 @@
/* slsReceiver */
#include "logger.h"
#include "Receiver.h"
#include "sls_detector_defs.h"
#include "container_utils.h"
#include <csignal> //SIGINT
#include <cstdlib> //system
#include <cstring>
#include <iostream>
#include <sys/types.h> //wait
#include <sys/wait.h> //wait
#include <csignal> //SIGINT
#include <syscall.h>
#include <unistd.h> //usleep
#include <memory>
#include <semaphore.h>
sem_t semaphore;