diff mbox

[2/2] libvirt: Use conventional function names

Message ID 6acb175cd824502f4664659718a97af3e17ff211.1461082800.git.crobinso@redhat.com
State Accepted
Commit 0496063f1473f5d00a304efa8111e476235f8351
Headers show

Commit Message

Cole Robinson April 19, 2016, 4:22 p.m. UTC
do_open and winsock_init don't follow the naming pattern of other
functions in this file. Rename them to match
---
 src/libvirt.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

-- 
2.7.3

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

Patch

diff --git a/src/libvirt.c b/src/libvirt.c
index 919c9cb..749089b 100644
--- a/src/libvirt.c
+++ b/src/libvirt.c
@@ -257,7 +257,7 @@  virConnectAuthPtr virConnectAuthPtrDefault = &virConnectAuthDefault;
 
 #if HAVE_WINSOCK2_H
 static int
-winsock_init(void)
+virWinsockInit(void)
 {
     WORD winsock_version, err;
     WSADATA winsock_data;
@@ -386,7 +386,7 @@  virGlobalInit(void)
     VIR_DEBUG("register drivers");
 
 #if HAVE_WINSOCK2_H
-    if (winsock_init() == -1)
+    if (virWinsockInit() == -1)
         goto error;
 #endif
 
@@ -958,9 +958,9 @@  virConnectCheckURIMissingSlash(const char *uristr, virURIPtr uri)
 
 
 static virConnectPtr
-do_open(const char *name,
-        virConnectAuthPtr auth,
-        unsigned int flags)
+virConnectOpenInternal(const char *name,
+                       virConnectAuthPtr auth,
+                       unsigned int flags)
 {
     size_t i;
     int res;
@@ -1161,7 +1161,7 @@  virConnectOpen(const char *name)
 
     VIR_DEBUG("name=%s", NULLSTR(name));
     virResetLastError();
-    ret = do_open(name, NULL, 0);
+    ret = virConnectOpenInternal(name, NULL, 0);
     if (!ret)
         goto error;
     return ret;
@@ -1197,7 +1197,7 @@  virConnectOpenReadOnly(const char *name)
 
     VIR_DEBUG("name=%s", NULLSTR(name));
     virResetLastError();
-    ret = do_open(name, NULL, VIR_CONNECT_RO);
+    ret = virConnectOpenInternal(name, NULL, VIR_CONNECT_RO);
     if (!ret)
         goto error;
     return ret;
@@ -1237,7 +1237,7 @@  virConnectOpenAuth(const char *name,
 
     VIR_DEBUG("name=%s, auth=%p, flags=%x", NULLSTR(name), auth, flags);
     virResetLastError();
-    ret = do_open(name, auth, flags);
+    ret = virConnectOpenInternal(name, auth, flags);
     if (!ret)
         goto error;
     return ret;