mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +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
|
@ -36,9 +36,7 @@ void Event::Describe(ODesc* d) const
|
|||
if ( d->IsReadable() )
|
||||
d->AddSP("event");
|
||||
|
||||
int s = d->IsShort();
|
||||
d->SetShort();
|
||||
// handler->Describe(d);
|
||||
bool s = d->IsShort();
|
||||
d->SetShort(s);
|
||||
|
||||
if ( ! d->IsBinary() )
|
||||
|
@ -80,7 +78,7 @@ EventMgr::EventMgr()
|
|||
current_src = SOURCE_LOCAL;
|
||||
current_aid = 0;
|
||||
src_val = 0;
|
||||
draining = 0;
|
||||
draining = false;
|
||||
}
|
||||
|
||||
EventMgr::~EventMgr()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue