The Great Embooleanating

A large number of functions had return values and/or arguments changed
to use ``bool`` types instead of ``int``.
This commit is contained in:
Tim Wojtulewicz 2020-03-11 10:41:46 -07:00 committed by Robin Sommer
parent 3c470ffe13
commit fd5e15b116
145 changed files with 1288 additions and 1331 deletions

View file

@ -19,7 +19,7 @@ extern "C" {
}
void Packet::Init(int arg_link_type, pkt_timeval *arg_ts, uint32_t arg_caplen,
uint32_t arg_len, const u_char *arg_data, int arg_copy,
uint32_t arg_len, const u_char *arg_data, bool arg_copy,
std::string arg_tag)
{
if ( data && copy )
@ -595,7 +595,7 @@ RecordVal* Packet::BuildPktHdrVal() const
RecordVal* pkt_hdr = new RecordVal(raw_pkt_hdr_type);
RecordVal* l2_hdr = new RecordVal(l2_hdr_type);
int is_ethernet = (link_type == DLT_EN10MB) ? 1 : 0;
bool is_ethernet = link_type == DLT_EN10MB;
int l3 = BifEnum::L3_UNKNOWN;