mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21: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
|
@ -41,7 +41,7 @@ static Val* parse_port(const char* line)
|
|||
{
|
||||
r->Assign(0, make_intrusive<AddrVal>(uint32_t(0)));
|
||||
r->Assign(1, val_mgr->GetPort(0, TRANSPORT_TCP));
|
||||
r->Assign(2, val_mgr->GetBool(0));
|
||||
r->Assign(2, val_mgr->GetFalse());
|
||||
}
|
||||
|
||||
return r;
|
||||
|
@ -218,4 +218,3 @@ function fmt_ftp_port%(a: addr, p: port%): string
|
|||
return val_mgr->GetEmptyString();
|
||||
}
|
||||
%}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue