Skip to content

Commit

Permalink
mac os compiles release
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanHolland committed Jun 2, 2021
1 parent baef400 commit 61117d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/pcapng/pcapng_sorter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct PacketSortInfo {
uint64_t ts;
FileWindow fw;

bool operator<(const PacketSortInfo &rhs) {
bool operator<(const PacketSortInfo &rhs) const {
if (rhs.sid == sid) {
return rhs.ts < ts;
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/label/label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ bool Label::match_packet(pcap_packet_info *pi) {
void Label::print() {
printf("Label {\n");
printf(" bpf: %s\n", bpf_string_filter.c_str());
printf(" tstart: %ld\n", ts_start);
printf(" tend: %ld\n", ts_end);
printf(" tstart: %llu\n", ts_start);
printf(" tend: %llu\n", ts_end);
printf("}\n");
}
4 changes: 2 additions & 2 deletions src/pcapng/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ void Block::print(FILE *stream) {
}
fprintf(stream, " }\n");
fprintf(stream, " FileWindow {\n");
fprintf(stream, " start: %ld\n", fw.f_start);
fprintf(stream, " end: %ld\n", fw.f_end);
fprintf(stream, " start: %llu\n", fw.f_start);
fprintf(stream, " end: %llu\n", fw.f_end);
fprintf(stream, " }\n");
fprintf(stream, "}\n");
}
Expand Down

0 comments on commit 61117d2

Please sign in to comment.