]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
maint: s/initialis/initializ/
authorEric Blake <eblake@redhat.com>
Wed, 7 Apr 2010 15:12:02 +0000 (09:12 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 7 Apr 2010 15:48:07 +0000 (09:48 -0600)
git grep found 12 of the former but 100 of the latter in src/.

* src/remote/remote_driver.c (initialise_gnutls): Rename...
(initialize_gnutls): ...to this.
(doRemoteOpen): Adjust caller.
* src/xen/xen_driver.c (xenUnifiedOpen): Adjust output string.
* src/util/network.c: Adjust comments.
Suggested by Matthias Bolte.

src/remote/remote_driver.c
src/util/network.c
src/xen/xen_driver.c

index a3913bb02b78d83b5d9d8a151f319f51e30bb6e1..990fdff230659785be38796195d40b6411e3b8f6 100644 (file)
@@ -271,7 +271,7 @@ void remoteDomainEventQueueFlush(int timer, void *opaque);
 static char *get_transport_from_scheme (char *scheme);
 
 /* GnuTLS functions used by remoteOpen. */
-static int initialise_gnutls (virConnectPtr conn);
+static int initialize_gnutls (virConnectPtr conn);
 static gnutls_session_t negotiate_gnutls_on_connection (virConnectPtr conn, struct private_data *priv, int no_verify);
 
 #ifdef WITH_LIBVIRTD
@@ -425,7 +425,7 @@ doRemoteOpen (virConnectPtr conn,
         transport = trans_unix;
     }
 
-    /* Local variables which we will initialise. These can
+    /* Local variables which we will initialize. These can
      * get freed in the failed: path.
      */
     char *name = NULL, *command = NULL, *sockname = NULL, *netcat = NULL;
@@ -579,7 +579,7 @@ doRemoteOpen (virConnectPtr conn,
     /* Connect to the remote service. */
     switch (transport) {
     case trans_tls:
-        if (initialise_gnutls (conn) == -1) goto failed;
+        if (initialize_gnutls (conn) == -1) goto failed;
         priv->uses_tls = 1;
         priv->is_secure = 1;
 
@@ -1140,12 +1140,12 @@ check_cert_file(const char *type, const char *file)
 
 
 static int
-initialise_gnutls (virConnectPtr conn)
+initialize_gnutls (virConnectPtr conn)
 {
-    static int initialised = 0;
+    static int initialized = 0;
     int err;
 
-    if (initialised) return 0;
+    if (initialized) return 0;
 
     gnutls_global_init ();
 
@@ -1193,7 +1193,7 @@ initialise_gnutls (virConnectPtr conn)
         return -1;
     }
 
-    initialised = 1;
+    initialized = 1;
     return 0;
 }
 
index 76f279199bda3ad55acc18f0db6b6294af6545d3..6e24792ff1c632671ac7cdcc5b53031fc3e0139b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * network.c: network helper APIs for libvirt
  *
- * Copyright (C) 2009-2009 Red Hat, Inc.
+ * Copyright (C) 2009-2010 Red Hat, Inc.
  *
  * See COPYING.LIB for the License of this software
  *
@@ -116,7 +116,7 @@ virSocketParseIpv6Addr(const char *val, virSocketAddrPtr addr) {
 
 /*
  * virSocketFormatAddr:
- * @addr: an initialised virSocketAddrPtr
+ * @addr: an initialized virSocketAddrPtr
  *
  * Returns a string representation of the given address
  * Returns NULL on any error
@@ -158,7 +158,7 @@ virSocketFormatAddr(virSocketAddrPtr addr) {
 
 /*
  * virSocketSetPort:
- * @addr: an initialised virSocketAddrPtr
+ * @addr: an initialized virSocketAddrPtr
  * @port: the port number to set
  *
  * Set the transport layer port of the given virtSocketAddr
@@ -189,7 +189,7 @@ virSocketSetPort(virSocketAddrPtr addr, int port) {
 
 /*
  * virSocketGetPort:
- * @addr: an initialised virSocketAddrPtr
+ * @addr: an initialized virSocketAddrPtr
  *
  * Returns the transport layer port of the given virtSocketAddr
  * Returns -1 if @addr is invalid
index 68b627ae3ba76197ff918f35c7b82754ccf65566..5ab169dbb943452cee5b231b0df35580ace6faac 100644 (file)
@@ -297,7 +297,7 @@ xenUnifiedOpen (virConnectPtr conn, virConnectAuthPtr auth, int flags)
     }
     if (virMutexInit(&priv->lock) < 0) {
         xenUnifiedError(VIR_ERR_INTERNAL_ERROR,
-                        "%s", _("cannot initialise mutex"));
+                        "%s", _("cannot initialize mutex"));
         VIR_FREE(priv);
         return VIR_DRV_OPEN_ERROR;
     }
@@ -1892,7 +1892,7 @@ out:
 }
 
 
-/*----- Register with libvirt.c, and initialise Xen drivers. -----*/
+/*----- Register with libvirt.c, and initialize Xen drivers. -----*/
 
 /* The interface which we export upwards to libvirt.c. */
 static virDriver xenUnifiedDriver = {