mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00

This also installs symlinks from "zeek" and "bro-config" to a wrapper script that prints a deprecation warning. The btests pass, but this is still WIP. broctl renaming is still missing. #239
21 lines
353 B
C++
21 lines
353 B
C++
#include "zeek-config.h"
|
|
|
|
#ifdef HAVE_MEMORY_H
|
|
#include <memory.h>
|
|
#endif
|
|
#include <stdlib.h>
|
|
|
|
#include "IntSet.h"
|
|
|
|
void IntSet::Expand(unsigned int i)
|
|
{
|
|
unsigned int newsize = i / 8 + 1;
|
|
unsigned char* newset = new unsigned char[newsize];
|
|
|
|
memset(newset, 0, newsize);
|
|
memcpy(newset, set, size);
|
|
|
|
delete [] set;
|
|
size = newsize;
|
|
set = newset;
|
|
}
|