From 6e0f1b940dc281863ef9d9f3bd57676927b8603f Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 24 Nov 2005 12:47:17 +0000 Subject: [privs/solaris] Fix unused variable and incorrect format string. 2005-11-24 Paul Jakma * privs.c: (zcaps2sys/solaris) remove unused variable. (zprivs_state_caps/solaris) Format string missing a specifier. --- lib/ChangeLog | 6 ++++++ lib/privs.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'lib') 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 + + * privs.c: (zcaps2sys/solaris) remove unused variable. + (zprivs_state_caps/solaris) Format string missing a + specifier. + 2005-11-14 Paul Jakma * (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; } -- cgit v1.2.1