mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
unused variables found via use-def analysis (plus an indentation micro-nit)
This commit is contained in:
parent
6e2cd3ae44
commit
fe46ef06a0
5 changed files with 6 additions and 7 deletions
|
@ -28,7 +28,6 @@ function connect_peer(node_type: NodeType, node_name: string)
|
|||
|
||||
function connect_peers_with_type(node_type: NodeType)
|
||||
{
|
||||
local rval: vector of NamedNode = vector();
|
||||
local nn = nodes_with_type(node_type);
|
||||
|
||||
for ( i in nn )
|
||||
|
|
|
@ -731,7 +731,7 @@ function find_rules_subnet(sn: subnet) : vector of Rule
|
|||
{
|
||||
local sn_entry = matches[m];
|
||||
local rule_ids = rules_by_subnets[sn_entry];
|
||||
for ( rule_id in rules_by_subnets[sn_entry] )
|
||||
for ( rule_id in rule_ids )
|
||||
{
|
||||
if ( rule_id in rules )
|
||||
ret += rules[rule_id];
|
||||
|
|
|
@ -195,7 +195,7 @@ function entity_to_match(p: PluginState, e: Entity): vector of OpenFlow::ofp_mat
|
|||
return openflow_match_pred(p, e, v);
|
||||
}
|
||||
|
||||
local proto = OpenFlow::IP_TCP;
|
||||
# local proto = OpenFlow::IP_TCP;
|
||||
|
||||
if ( e$ty == FLOW )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue