[PATCH 5/7] virNetSocket: rename AddrStr to AddrStrSASL

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

 



Make it more obvious that these are in the SASL format.
---
 src/rpc/virnetsocket.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/rpc/virnetsocket.c b/src/rpc/virnetsocket.c
index f10b62b..00dc417 100644
--- a/src/rpc/virnetsocket.c
+++ b/src/rpc/virnetsocket.c
@@ -85,8 +85,8 @@ struct _virNetSocket {
 
     virSocketAddr localAddr;
     virSocketAddr remoteAddr;
-    char *localAddrStr;
-    char *remoteAddrStr;
+    char *localAddrStrSASL;
+    char *remoteAddrStrSASL;
     char *remoteAddrStrURI;
 
 #if WITH_GNUTLS
@@ -263,11 +263,11 @@ static virNetSocketPtr virNetSocketNew(virSocketAddrPtr localAddr,
 
 
     if (localAddr &&
-        !(sock->localAddrStr = virSocketAddrFormatFull(localAddr, true, ";")))
+        !(sock->localAddrStrSASL = virSocketAddrFormatFull(localAddr, true, ";")))
         goto error;
 
     if (remoteAddr &&
-        !(sock->remoteAddrStr = virSocketAddrFormatFull(remoteAddr, true, ";")))
+        !(sock->remoteAddrStrSASL = virSocketAddrFormatFull(remoteAddr, true, ";")))
         goto error;
 
     if (remoteAddr &&
@@ -279,7 +279,7 @@ static virNetSocketPtr virNetSocketNew(virSocketAddrPtr localAddr,
     PROBE(RPC_SOCKET_NEW,
           "sock=%p fd=%d errfd=%d pid=%lld localAddr=%s, remoteAddr=%s",
           sock, fd, errfd, (long long) pid,
-          NULLSTR(sock->localAddrStr), NULLSTR(sock->remoteAddrStr));
+          NULLSTR(sock->localAddrStrSASL), NULLSTR(sock->remoteAddrStrSASL));
 
     return sock;
 
@@ -1207,8 +1207,8 @@ void virNetSocketDispose(void *obj)
 
     virProcessAbort(sock->pid);
 
-    VIR_FREE(sock->localAddrStr);
-    VIR_FREE(sock->remoteAddrStr);
+    VIR_FREE(sock->localAddrStrSASL);
+    VIR_FREE(sock->remoteAddrStrSASL);
     VIR_FREE(sock->remoteAddrStrURI);
 }
 
@@ -1463,12 +1463,12 @@ int virNetSocketSetBlocking(virNetSocketPtr sock,
 
 const char *virNetSocketLocalAddrString(virNetSocketPtr sock)
 {
-    return sock->localAddrStr;
+    return sock->localAddrStrSASL;
 }
 
 const char *virNetSocketRemoteAddrString(virNetSocketPtr sock)
 {
-    return sock->remoteAddrStr;
+    return sock->remoteAddrStrSASL;
 }
 
 const char *virNetSocketRemoteAddrStringURI(virNetSocketPtr sock)
-- 
2.7.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]