[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] Remove an unnecessary variable from remoteIOReadMessage().



Signed-off-by: Chris Lalancette <clalance redhat com>
---
 src/remote_internal.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/remote_internal.c b/src/remote_internal.c
index dd7b31e..b89d45d 100644
--- a/src/remote_internal.c
+++ b/src/remote_internal.c
@@ -6942,10 +6942,9 @@ remoteIOReadMessage(virConnectPtr conn, struct private_data *priv,
     if (priv->saslconn) {
         if (priv->saslDecoded == NULL) {
             char encoded[8192];
-            unsigned int encodedLen = sizeof(encoded);
             int ret, err;
             ret = remoteIOReadBuffer(conn, priv, in_open,
-                                     encoded, encodedLen);
+                                     encoded, sizeof(encoded));
             if (ret < 0)
                 return -1;
             if (ret == 0)
-- 
1.6.0.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]