Skip to content

Commit

Permalink
Small amendment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelmold committed Nov 11, 2024
1 parent d225360 commit b3ff0ab
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/manage_sql_secinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -4047,10 +4047,8 @@ update_scap_cves ()
* @brief Update SCAP affected products.
*
* Assume that the databases are attached.
*
* @return 0 success, -1 error.
*/
static int
static void
update_scap_affected_products ()

Check warning on line 4052 in src/manage_sql_secinfo.c

View check run for this annotation

Codecov / codecov/patch

src/manage_sql_secinfo.c#L4052

Added line #L4052 was not covered by tests
{
g_info ("Updating affected products");

Check warning on line 4054 in src/manage_sql_secinfo.c

View check run for this annotation

Codecov / codecov/patch

src/manage_sql_secinfo.c#L4054

Added line #L4054 was not covered by tests
Expand All @@ -4064,8 +4062,6 @@ update_scap_affected_products ()
" AND scap2.cpe_nodes_match_criteria.match_criteria_id ="
" scap2.cpe_matches.match_criteria_id"
" AND scap2.cpe_matches.cpe_name_id = scap2.cpes.cpe_name_id;");

return 0;
}

/**
Expand Down Expand Up @@ -5634,11 +5630,7 @@ update_scap (gboolean reset_scap_db)
g_debug ("%s: update affected_products", __func__);
setproctitle ("Syncing SCAP: Updating affected products");

Check warning on line 5631 in src/manage_sql_secinfo.c

View check run for this annotation

Codecov / codecov/patch

src/manage_sql_secinfo.c#L5630-L5631

Added lines #L5630 - L5631 were not covered by tests

if (update_scap_affected_products () == -1)
{
abort_scap_update ();
return -1;
}
update_scap_affected_products ();

Check warning on line 5633 in src/manage_sql_secinfo.c

View check run for this annotation

Codecov / codecov/patch

src/manage_sql_secinfo.c#L5633

Added line #L5633 was not covered by tests

g_debug ("%s: updating user defined data", __func__);

Expand Down

0 comments on commit b3ff0ab

Please sign in to comment.