summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ChangeLog6
-rw-r--r--lib/privs.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index e544d044..7e485635 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2005-11-14 Paul Jakma <paul.jakma@sun.com>
* (general) pass struct work-queue to callback functions.
diff --git a/lib/privs.c b/lib/privs.c
index 9f36db06..8ed39f4f 100644
--- a/lib/privs.c
+++ b/lib/privs.c
@@ -348,7 +348,7 @@ static pset_t *
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 @@ zprivs_state_caps (void)
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;
}