mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
remove unnecessary casts, and change necessary ones to use static_cast<>
This commit is contained in:
parent
2faaccf10a
commit
245108e86e
30 changed files with 253 additions and 253 deletions
|
@ -146,11 +146,11 @@ function findalldevs%(%): Pcap::Interfaces
|
|||
}
|
||||
}
|
||||
r->Assign(2, addrs->ToSetVal());
|
||||
r->Assign(3, bool(d->flags & PCAP_IF_LOOPBACK));
|
||||
r->Assign(3, static_cast<bool>(d->flags & PCAP_IF_LOOPBACK));
|
||||
#ifdef PCAP_IF_UP
|
||||
// These didn't become available until libpcap 1.6.1
|
||||
r->Assign(4, bool(d->flags & PCAP_IF_UP));
|
||||
r->Assign(5, bool(d->flags & PCAP_IF_RUNNING));
|
||||
r->Assign(4, static_cast<bool>(d->flags & PCAP_IF_UP));
|
||||
r->Assign(5, static_cast<bool>(d->flags & PCAP_IF_RUNNING));
|
||||
#endif
|
||||
|
||||
pcap_interfaces->Assign(std::move(r), nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue