Skip to content

Commit

Permalink
Fix: script_mandatory_keys usage (#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraemii committed Mar 23, 2022
1 parent 46b3c2c commit 06ce797
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nasl/nasl_scanner_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ script_require_keys (lex_ctxt *lexic)
if (keys == NULL)
{
nasl_perror (lexic, "Argument error in function script_require_keys()\n");
nasl_perror (lexic, "Function usage is : script_require_keys(<name>)\n");
nasl_perror (lexic,
"Function usage is : script_require_keys(<name>...)\n");
nasl_perror (lexic, "Where <name> is the name of a key\n");
return FAKE_CELL;
}
Expand All @@ -379,9 +380,10 @@ script_mandatory_keys (lex_ctxt *lexic)
{
nasl_perror (lexic,
"Argument error in function script_mandatory_keys()\n");
nasl_perror (lexic,
"Function usage is : script_mandatory_keys(<name>)\n");
nasl_perror (lexic, "Where <name> is the name of a key\n");
nasl_perror (lexic, "Function usage is: script_mandatory_keys(<name>... "
"[, re: '<name>=<regex>'])\n");
nasl_perror (lexic, "Where <name> is the name of a key and <regex> is a "
"regular expression for a value of a key.\n");
return FAKE_CELL;
}

Expand Down

0 comments on commit 06ce797

Please sign in to comment.