Skip to content

Commit

Permalink
Small amendments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelmold committed May 28, 2024
1 parent 17f2e16 commit ce211d9
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/gsad_gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4428,7 +4428,7 @@ append_alert_condition_data (GString *xml, params_t *data,
*/
static void
append_alert_method_data (GString *xml, params_t *data, const char *method,
params_t *report_formats, params_t *report_configs)
params_t *report_formats)
{
params_iterator_t iter;
char *name;
Expand Down Expand Up @@ -4612,8 +4612,7 @@ create_alert_gmp (gvm_connection_t *connection, credentials_t *credentials,
int ret;
gchar *html, *response;
const char *name, *comment, *active, *condition, *event, *method, *filter_id;
params_t *method_data, *event_data, *condition_data, *report_formats,
*report_configs;
params_t *method_data, *event_data, *condition_data, *report_formats;
entity_t entity;
GString *xml;

Expand All @@ -4638,7 +4637,6 @@ create_alert_gmp (gvm_connection_t *connection, credentials_t *credentials,
event_data = params_values (params, "event_data:");
condition_data = params_values (params, "condition_data:");
report_formats = params_values (params, "report_format_ids:");
report_configs = params_values (params, "report_config_ids:");

xml = g_string_new ("");

Expand Down Expand Up @@ -4675,8 +4673,7 @@ create_alert_gmp (gvm_connection_t *connection, credentials_t *credentials,
"<method>%s",
method);

append_alert_method_data (xml, method_data, method, report_formats,
report_configs);
append_alert_method_data (xml, method_data, method, report_formats);

xml_string_append (xml,
"</method>"
Expand Down Expand Up @@ -5110,8 +5107,7 @@ save_alert_gmp (gvm_connection_t *connection, credentials_t *credentials,
const char *name, *comment, *alert_id;
const char *event, *condition, *method;
const char *filter_id, *active;
params_t *event_data, *condition_data, *method_data, *report_formats,
*report_configs;
params_t *event_data, *condition_data, *method_data, *report_formats;
entity_t entity;

name = params_value (params, "name");
Expand Down Expand Up @@ -5144,7 +5140,6 @@ save_alert_gmp (gvm_connection_t *connection, credentials_t *credentials,
condition_data = params_values (params, "condition_data:");
method_data = params_values (params, "method_data:");
report_formats = params_values (params, "report_format_ids:");
report_configs = params_values (params, "report_config_ids:");

if (str_equal (event, EVENT_TYPE_NEW_SECINFO) && event_data)
{
Expand Down Expand Up @@ -5179,8 +5174,7 @@ save_alert_gmp (gvm_connection_t *connection, credentials_t *credentials,
"<method>%s",
method);

append_alert_method_data (xml, method_data, method, report_formats,
report_configs);
append_alert_method_data (xml, method_data, method, report_formats);

xml_string_append (xml,
"</method>"
Expand Down

0 comments on commit ce211d9

Please sign in to comment.