Skip to content

Commit 39e36d6

Browse files
author
Mario Ruiz
committed
Fix return type
1 parent e4a4e96 commit 39e36d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hls/TOE/testbench/pcap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ int pcap_loop (int cnt, pcap_handler callback, unsigned char *user)
194194
}
195195

196196

197-
int pcap_WriteHeader (bool microseconds){
197+
void pcap_WriteHeader (bool microseconds){
198198

199199
pcap_hdr_t global_header;
200200

@@ -218,7 +218,7 @@ int pcap_WriteHeader (bool microseconds){
218218
}
219219

220220

221-
int pcap_WriteData (uint8_t *data, int data_size){
221+
void pcap_WriteData (uint8_t *data, int data_size){
222222
pcaprec_hdr_t local_header;
223223
static bool first_call = true;
224224
static struct timeval tv;

hls/TOE/testbench/pcap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ int pcap_loop (int cnt, pcap_handler callback, unsigned char *user);
142142
int pcap_open_write (char *path, bool microseconds);
143143

144144

145-
int pcap_WriteData (uint8_t *data, int data_size);
145+
void pcap_WriteData (uint8_t *data, int data_size);
146146

147147
/**
148148
* @brief Close a previous file opened with pcap_open_write.

0 commit comments

Comments
 (0)