Skip to content

Commit ec6593e

Browse files
committed
Fixing compilation errors
Adding unistd.h to ScanMain to provide sleep, not all systems find this without adding the header. Fixing StatsHandler constructor to match with what is in header. Signed-off-by: S.V. Paulauskas <stanpaulauskas@gmail.com>
1 parent f0e139e commit ec6593e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Core/source/ScanMain.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11

22
#include <iostream>
33
#include <sstream>
4-
#include <string.h>
54
#include <thread>
65

6+
#include <cstring>
7+
#include <unistd.h>
8+
79
#include "Unpacker.hpp"
810
#include "hribf_buffers.h"
911
#include "poll2_socket.h"

Poll/source/poll2_stats.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "poll2_stats.h"
77
#include "poll2_socket.h"
88

9-
StatsHandler::StatsHandler(unsigned int nCards){
9+
StatsHandler::StatsHandler(const size_t nCards){
1010
numCards = nCards;
1111

1212
// Define all the 2d arrays

0 commit comments

Comments
 (0)