]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[privs/solaris] Fix unused variable and incorrect format string.
authorpaul <paul>
Thu, 24 Nov 2005 12:47:17 +0000 (12:47 +0000)
committerpaul <paul>
Thu, 24 Nov 2005 12:47:17 +0000 (12:47 +0000)
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.

lib/ChangeLog
lib/privs.c

index e544d044d338deed37ed5786d81623bd680a8184..7e485635f4ffac5cf4532cb6b11a448811bfe9a2 100644 (file)
@@ -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.
index 9f36db065ff26346529e7ce265a12a25bbccd9f0..8ed39f4f283a5ac3ed9b095cebfdece338b2c704 100644 (file)
@@ -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;
     }