summaryrefslogtreecommitdiff
path: root/lib/privs.c
diff options
context:
space:
mode:
authorpaul <paul>2005-11-24 12:47:17 +0000
committerpaul <paul>2005-11-24 12:47:17 +0000
commit6e0f1b940dc281863ef9d9f3bd57676927b8603f (patch)
treed6b5bdc6518a4ca4ac8c9d6df0ffd4bab21b369b /lib/privs.c
parenta0ace1e8f2331f497ccea3d840a4051f75341fdf (diff)
[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.
Diffstat (limited to 'lib/privs.c')
-rw-r--r--lib/privs.c6
1 files changed, 3 insertions, 3 deletions
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;
}