From ce211d93bd3e95ea1fdc3991945bcd283015cafc Mon Sep 17 00:00:00 2001 From: Johannes Helmold Date: Tue, 28 May 2024 11:12:57 +0200 Subject: [PATCH] Small amendments. --- src/gsad_gmp.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/gsad_gmp.c b/src/gsad_gmp.c index efd8354d1..f79266a12 100644 --- a/src/gsad_gmp.c +++ b/src/gsad_gmp.c @@ -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; @@ -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; @@ -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 (""); @@ -4675,8 +4673,7 @@ create_alert_gmp (gvm_connection_t *connection, credentials_t *credentials, "%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, "" @@ -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"); @@ -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) { @@ -5179,8 +5174,7 @@ save_alert_gmp (gvm_connection_t *connection, credentials_t *credentials, "%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, ""