[privs/solaris] Fix unused variable and incorrect format string.
2005-11-24 Paul Jakma <paul.jakma@sun.com>
* privs.c: (zcaps2sys/solaris) remove unused variable.
(zprivs_state_caps/solaris) Format string missing a
specifier.
diff --git a/lib/privs.c b/lib/privs.c
index 9f36db0..8ed39f4 100644
--- a/lib/privs.c
+++ b/lib/privs.c
@@ -348,7 +348,7 @@
zcaps2sys (zebra_capabilities_t *zcaps, int num)
{
pset_t *syscaps;
- int i, j = 0, count = 0;
+ int i, j = 0;
if ((syscaps = priv_allocset()) == NULL)
{
@@ -405,14 +405,14 @@
if ( (effective = priv_allocset()) == NULL)
{
- fprintf (stderr, "%s: failed to get priv_allocset!\n", __func__,
+ fprintf (stderr, "%s: failed to get priv_allocset! %s\n", __func__,
safe_strerror (errno));
return ZPRIVS_UNKNOWN;
}
if (getppriv (PRIV_EFFECTIVE, effective))
{
- fprintf (stderr, "%s: failed to get state!%s\n", __func__,
+ fprintf (stderr, "%s: failed to get state! %s\n", __func__,
safe_strerror (errno));
result = ZPRIVS_UNKNOWN;
}