mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
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:
parent
3c470ffe13
commit
fd5e15b116
145 changed files with 1288 additions and 1331 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue