mirror of
https://github.com/SELinuxProject/selinux
synced 2025-04-01 14:55:19 +00:00
libsemanage: no longer use variables with unused attribute
Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
172ce53ffa
commit
5b6287fafc
@ -154,7 +154,6 @@ int dbase_llist_add(semanage_handle_t * handle,
|
|||||||
if (dbase_llist_cache_prepend(handle, dbase, data) < 0)
|
if (dbase_llist_cache_prepend(handle, dbase, data) < 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
key = NULL;
|
|
||||||
dbase->modified = 1;
|
dbase->modified = 1;
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
|
||||||
@ -224,7 +223,6 @@ hidden int dbase_llist_count(semanage_handle_t * handle __attribute__ ((unused))
|
|||||||
{
|
{
|
||||||
|
|
||||||
*response = dbase->cache_sz;
|
*response = dbase->cache_sz;
|
||||||
handle = NULL;
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -303,7 +301,6 @@ int dbase_llist_del(semanage_handle_t * handle __attribute__ ((unused)),
|
|||||||
prev = ptr;
|
prev = ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
handle = NULL;
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,7 +165,6 @@ static int dbase_policydb_flush(semanage_handle_t * handle
|
|||||||
dbase->modified = 0;
|
dbase->modified = 0;
|
||||||
|
|
||||||
/* Stub */
|
/* Stub */
|
||||||
handle = NULL;
|
|
||||||
return STATUS_ERR;
|
return STATUS_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -298,9 +297,6 @@ static int dbase_policydb_del(semanage_handle_t * handle
|
|||||||
{
|
{
|
||||||
|
|
||||||
/* Stub */
|
/* Stub */
|
||||||
key = NULL;
|
|
||||||
handle = NULL;
|
|
||||||
dbase = NULL;
|
|
||||||
return STATUS_ERR;
|
return STATUS_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -311,8 +307,6 @@ static int dbase_policydb_clear(semanage_handle_t * handle
|
|||||||
{
|
{
|
||||||
|
|
||||||
/* Stub */
|
/* Stub */
|
||||||
handle = NULL;
|
|
||||||
dbase = NULL;
|
|
||||||
return STATUS_ERR;
|
return STATUS_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,8 +86,6 @@ void hidden semanage_msg_default_handler(void *varg __attribute__ ((unused)),
|
|||||||
fprintf(stream, " (%s).", strerror(errsv));
|
fprintf(stream, " (%s).", strerror(errsv));
|
||||||
|
|
||||||
fprintf(stream, "\n");
|
fprintf(stream, "\n");
|
||||||
|
|
||||||
varg = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
@ -291,7 +291,6 @@ static void semanage_direct_destroy(semanage_handle_t * sh
|
|||||||
__attribute__ ((unused)))
|
__attribute__ ((unused)))
|
||||||
{
|
{
|
||||||
/* do nothing */
|
/* do nothing */
|
||||||
sh = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int semanage_direct_disconnect(semanage_handle_t * sh)
|
static int semanage_direct_disconnect(semanage_handle_t * sh)
|
||||||
|
Loading…
Reference in New Issue
Block a user