mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Replace bzero() with memset()
This commit is contained in:
parent
62206825e4
commit
2e5f96f5a9
2 changed files with 4 additions and 7 deletions
|
@ -27,14 +27,11 @@ private:
|
|||
unsigned char* set;
|
||||
};
|
||||
|
||||
|
||||
#define bzero(p, size) memset(p, 0, size)
|
||||
|
||||
inline IntSet::IntSet(unsigned int n)
|
||||
{
|
||||
size = n / 8 + 1;
|
||||
set = new unsigned char[size];
|
||||
bzero(set, size);
|
||||
memset(set, 0, size);
|
||||
}
|
||||
|
||||
inline IntSet::~IntSet()
|
||||
|
@ -65,5 +62,5 @@ inline bool IntSet::Contains(unsigned int i) const
|
|||
|
||||
inline void IntSet::Clear()
|
||||
{
|
||||
bzero(set, size);
|
||||
memset(set, 0, size);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue