mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
sw-collector: Fix build with DEBUG_LEVEL < 1
This commit is contained in:
parent
16c2def3ae
commit
8e78d9fcec
@ -451,7 +451,7 @@ static int list_identifiers(sw_collector_db_t *db, sw_collector_db_query_t type)
|
|||||||
{
|
{
|
||||||
enumerator_t *e;
|
enumerator_t *e;
|
||||||
char *name, *package, *version;
|
char *name, *package, *version;
|
||||||
uint32_t sw_id, count = 0, installed_count = 0, removed_count, installed;
|
uint32_t sw_id, count = 0, installed_count = 0, installed;
|
||||||
|
|
||||||
e = db->create_sw_enumerator(db, type, NULL);
|
e = db->create_sw_enumerator(db, type, NULL);
|
||||||
if (!e)
|
if (!e)
|
||||||
@ -467,14 +467,14 @@ static int list_identifiers(sw_collector_db_t *db, sw_collector_db_query_t type)
|
|||||||
}
|
}
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
removed_count = count - installed_count;
|
|
||||||
e->destroy(e);
|
e->destroy(e);
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case SW_QUERY_ALL:
|
case SW_QUERY_ALL:
|
||||||
DBG1(DBG_IMC, "retrieved %u software identities with %u installed "
|
DBG1(DBG_IMC, "retrieved %u software identities with %u installed "
|
||||||
"and %u removed", count, installed_count, removed_count);
|
"and %u removed", count, installed_count,
|
||||||
|
count - installed_count);
|
||||||
break;
|
break;
|
||||||
case SW_QUERY_INSTALLED:
|
case SW_QUERY_INSTALLED:
|
||||||
DBG1(DBG_IMC, "retrieved %u installed software identities", count);
|
DBG1(DBG_IMC, "retrieved %u installed software identities", count);
|
||||||
@ -629,7 +629,7 @@ static int migrate(sw_collector_db_t *db)
|
|||||||
|
|
||||||
char *package, *arch, *version;
|
char *package, *arch, *version;
|
||||||
char package_filter[BUF_LEN];
|
char package_filter[BUF_LEN];
|
||||||
int res, count = 0;
|
int res, count DBG_UNUSED = 0;
|
||||||
int status = EXIT_SUCCESS;
|
int status = EXIT_SUCCESS;
|
||||||
enumerator_t *enumerator;
|
enumerator_t *enumerator;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user