[FIX] small codestyle changes

This commit is contained in:
Christian Struck 2014-11-10 16:49:20 -08:00
parent 8e2c269c2e
commit fef8476690
2 changed files with 2 additions and 4 deletions

View file

@ -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;

View file

@ -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 "\"\"";
}
}