mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
[FIX] small codestyle changes
This commit is contained in:
parent
8e2c269c2e
commit
fef8476690
2 changed files with 2 additions and 4 deletions
|
@ -248,7 +248,7 @@ export {
|
|||
##
|
||||
## Returns: T, if successful, else F.
|
||||
global flow_mod: function(dpid: count, flow_mod: ofp_flow_mod): bool
|
||||
&default=function(dpid: count, flow_mod:ofp_flow_mod): bool
|
||||
&default=function(dpid: count, flow_mod: ofp_flow_mod): bool
|
||||
{
|
||||
Reporter::warning("Openflow::flow_mod function not implemented. Please load the right Openflow plugin");
|
||||
return F;
|
||||
|
|
|
@ -69,9 +69,7 @@ function convert(v: any, only_loggable: bool &default=F, field_escape_pattern: p
|
|||
local field_desc = ft[field];
|
||||
# replace the escape pattern in the field.
|
||||
if( field_escape_pattern in field )
|
||||
{
|
||||
field = cat(sub(field, field_escape_pattern, ""));
|
||||
}
|
||||
if ( field_desc?$value && (!only_loggable || field_desc$log) )
|
||||
{
|
||||
local onepart = cat("\"", field, "\": ", JSON::convert(field_desc$value, only_loggable));
|
||||
|
@ -116,4 +114,4 @@ function convert(v: any, only_loggable: bool &default=F, field_escape_pattern: p
|
|||
}
|
||||
|
||||
return "\"\"";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue