mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Trim the list of "global type pointers" from NetVar.h further
Most of them are deprecated now, with usage sites now doing the lookup themselves.
This commit is contained in:
parent
d34b24e776
commit
9210d443d3
26 changed files with 290 additions and 315 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "Event.h"
|
||||
#include "Reporter.h"
|
||||
#include "Desc.h"
|
||||
#include "Var.h"
|
||||
|
||||
std::list<std::pair<std::string, BroFile*>> BroFile::open_files;
|
||||
|
||||
|
@ -277,7 +278,8 @@ RecordVal* BroFile::Rotate()
|
|||
if ( f == stdin || f == stdout || f == stderr )
|
||||
return nullptr;
|
||||
|
||||
RecordVal* info = new RecordVal(zeek::vars::rotate_info);
|
||||
static auto rotate_info = zeek::lookup_type<RecordType>("rotate_info");
|
||||
RecordVal* info = new RecordVal(rotate_info);
|
||||
FILE* newf = rotate_file(name, info);
|
||||
|
||||
if ( ! newf )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue