Skip to content

Commit

Permalink
chore: formatted with clang format.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
FedeDP committed Oct 24, 2024
1 parent 58b9a1e commit 68377c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions examples/syscall_extract/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,14 @@ class my_plugin
{
using ft = falcosecurity::field_value_type;
return {
{ft::FTYPE_BOOL, "sample.is_open", "Is Open Type",
{ft::FTYPE_BOOL,
"sample.is_open",
"Is Open Type",
"Value is true if event is of open family",
{}, false, {}, true}, // use as suggested output format
{},
false,
{},
true}, // use as suggested output format
{ft::FTYPE_UINT64, "sample.open_count", "Open Type Count",
"Counter for all the events of open family in the event's "
"thread thread"},
Expand Down
6 changes: 3 additions & 3 deletions include/falcosecurity/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ struct field_info
FALCOSECURITY_INLINE
field_info(field_value_type t, const std::string& n, const std::string& di,
const std::string& de, const field_arg& a = field_arg(),
bool l = false, const std::vector<std::string>& p = {}, bool o = false):
bool l = false, const std::vector<std::string>& p = {},
bool o = false):
type(t),
name(n), list(l), arg(a), display(di), description(de),
properties(p),
addOutput(o)
properties(p), addOutput(o)
{
}
FALCOSECURITY_INLINE
Expand Down

0 comments on commit 68377c2

Please sign in to comment.