mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix some "make doc" warnings and update some doc tests
This commit is contained in:
parent
1e2ba6ebfb
commit
cc7286b628
4 changed files with 4 additions and 5 deletions
|
@ -113,7 +113,7 @@ default, including:
|
||||||
As you can see, some log files are specific to a particular protocol,
|
As you can see, some log files are specific to a particular protocol,
|
||||||
while others aggregate information across different types of activity.
|
while others aggregate information across different types of activity.
|
||||||
For a complete list of log files and a description of its purpose,
|
For a complete list of log files and a description of its purpose,
|
||||||
see :doc:`List of Log Files <../script-reference/list-of-log-files>`.
|
see :doc:`Log Files <../script-reference/log-files>`.
|
||||||
|
|
||||||
.. _bro-cut:
|
.. _bro-cut:
|
||||||
|
|
||||||
|
|
|
@ -2163,8 +2163,7 @@ function counts_to_addr%(v: index_vec%): addr
|
||||||
##
|
##
|
||||||
## e: The :bro:type:`enum` to convert.
|
## e: The :bro:type:`enum` to convert.
|
||||||
##
|
##
|
||||||
## Returns: The :bro:type:`enum` as the :bro:type:`int` value that it
|
## Returns: The :bro:type:`int` value that corresponds to the :bro:type:`enum`.
|
||||||
## to corresponds.
|
|
||||||
function enum_to_int%(e: any%): int
|
function enum_to_int%(e: any%): int
|
||||||
%{
|
%{
|
||||||
if ( e->Type()->Tag() != TYPE_ENUM )
|
if ( e->Type()->Tag() != TYPE_ENUM )
|
||||||
|
|
|
@ -14,6 +14,6 @@ event bro_init()
|
||||||
|
|
||||||
print fmt("contents of v1: %s", v1);
|
print fmt("contents of v1: %s", v1);
|
||||||
print fmt("length of v1: %d", |v1|);
|
print fmt("length of v1: %d", |v1|);
|
||||||
print fmt("contents of v1: %s", v2);
|
print fmt("contents of v2: %s", v2);
|
||||||
print fmt("length of v2: %d", |v2|);
|
print fmt("length of v2: %d", |v2|);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ data_type_pattern_01.bro
|
||||||
|
|
||||||
event bro_init()
|
event bro_init()
|
||||||
{
|
{
|
||||||
local test_string = "The quick brown fox jumped over the lazy dog.";
|
local test_string = "The quick brown fox jumps over the lazy dog.";
|
||||||
local test_pattern = /quick|lazy/;
|
local test_pattern = /quick|lazy/;
|
||||||
|
|
||||||
if ( test_pattern in test_string )
|
if ( test_pattern in test_string )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue