security_dac: Remove unnecessary ATTRIBUTE_UNUSED

Remove ATTRIBUTE_UNUSED on several function parameters that are
actually used.
This commit is contained in:
Jim Fehlig 2014-05-14 11:30:53 -06:00
parent ed5950909d
commit fcf5ea7fc0

View File

@ -880,7 +880,7 @@ virSecurityDACRestoreSecurityAllLabel(virSecurityManagerPtr mgr,
static int static int
virSecurityDACSetChardevCallback(virDomainDefPtr def ATTRIBUTE_UNUSED, virSecurityDACSetChardevCallback(virDomainDefPtr def,
virDomainChrDefPtr dev, virDomainChrDefPtr dev,
void *opaque) void *opaque)
{ {
@ -984,7 +984,7 @@ virSecurityDACRestoreSavedStateLabel(virSecurityManagerPtr mgr,
static int static int
virSecurityDACSetProcessLabel(virSecurityManagerPtr mgr, virSecurityDACSetProcessLabel(virSecurityManagerPtr mgr,
virDomainDefPtr def ATTRIBUTE_UNUSED) virDomainDefPtr def)
{ {
uid_t user; uid_t user;
gid_t group; gid_t group;
@ -1007,7 +1007,7 @@ virSecurityDACSetProcessLabel(virSecurityManagerPtr mgr,
static int static int
virSecurityDACSetChildProcessLabel(virSecurityManagerPtr mgr, virSecurityDACSetChildProcessLabel(virSecurityManagerPtr mgr,
virDomainDefPtr def ATTRIBUTE_UNUSED, virDomainDefPtr def,
virCommandPtr cmd) virCommandPtr cmd)
{ {
uid_t user; uid_t user;
@ -1119,9 +1119,9 @@ virSecurityDACReserveLabel(virSecurityManagerPtr mgr ATTRIBUTE_UNUSED,
static int static int
virSecurityDACGetProcessLabel(virSecurityManagerPtr mgr ATTRIBUTE_UNUSED, virSecurityDACGetProcessLabel(virSecurityManagerPtr mgr ATTRIBUTE_UNUSED,
virDomainDefPtr def ATTRIBUTE_UNUSED, virDomainDefPtr def,
pid_t pid ATTRIBUTE_UNUSED, pid_t pid ATTRIBUTE_UNUSED,
virSecurityLabelPtr seclabel ATTRIBUTE_UNUSED) virSecurityLabelPtr seclabel)
{ {
virSecurityLabelDefPtr secdef = virSecurityLabelDefPtr secdef =
virDomainDefGetSecurityLabelDef(def, SECURITY_DAC_NAME); virDomainDefGetSecurityLabelDef(def, SECURITY_DAC_NAME);