mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17: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
|
@ -44,11 +44,11 @@ public:
|
|||
|
||||
ipaddr32_t Anonymize(ipaddr32_t addr);
|
||||
|
||||
virtual int PreservePrefix(ipaddr32_t input, int num_bits);
|
||||
virtual bool PreservePrefix(ipaddr32_t input, int num_bits);
|
||||
|
||||
virtual ipaddr32_t anonymize(ipaddr32_t addr) = 0;
|
||||
|
||||
int PreserveNet(ipaddr32_t input);
|
||||
|
||||
bool PreserveNet(ipaddr32_t input);
|
||||
|
||||
protected:
|
||||
map<ipaddr32_t, ipaddr32_t> mapping;
|
||||
|
@ -85,7 +85,7 @@ public:
|
|||
~AnonymizeIPAddr_A50() override;
|
||||
|
||||
ipaddr32_t anonymize(ipaddr32_t addr) override;
|
||||
int PreservePrefix(ipaddr32_t input, int num_bits) override;
|
||||
bool PreservePrefix(ipaddr32_t input, int num_bits) override;
|
||||
|
||||
protected:
|
||||
struct Node {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue