[libvirt PATCH 2/5] src: fix misc spelling errors reported by codespell

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

 



Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 src/esx/esx_vi.c                 | 4 ++--
 src/libvirt-domain.c             | 4 ++--
 src/locking/virtlockd.service.in | 2 +-
 src/logging/virtlogd.service.in  | 2 +-
 src/qemu/qemu_qapi.c             | 4 ++--
 src/remote/remote_daemon.c       | 2 +-
 src/util/virbuffer.c             | 2 +-
 src/util/vireventglib.c          | 2 +-
 src/util/virhash.c               | 2 +-
 src/util/virnetdevmacvlan.c      | 2 +-
 src/vbox/vbox_uniformed_api.h    | 2 +-
 11 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/esx/esx_vi.c b/src/esx/esx_vi.c
index c7af092569..7e05318fdc 100644
--- a/src/esx/esx_vi.c
+++ b/src/esx/esx_vi.c
@@ -2252,7 +2252,7 @@ esxVI_GetBoolean(esxVI_ObjectContent *objectContent, const char *propertyName,
 
 int
 esxVI_GetInt(esxVI_ObjectContent *objectContent, const char *propertyName,
-             esxVI_Int **value, esxVI_Occurrence occurence)
+             esxVI_Int **value, esxVI_Occurrence occurrence)
 {
     esxVI_DynamicProperty *dynamicProperty;
 
@@ -2268,7 +2268,7 @@ esxVI_GetInt(esxVI_ObjectContent *objectContent, const char *propertyName,
         }
     }
 
-    if (!(*value) && occurence == esxVI_Occurrence_RequiredItem) {
+    if (!(*value) && occurrence == esxVI_Occurrence_RequiredItem) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
                        _("Missing '%s' property"), propertyName);
         return -1;
diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index 415482a526..2768c6d7c2 100644
--- a/src/libvirt-domain.c
+++ b/src/libvirt-domain.c
@@ -3383,14 +3383,14 @@ virDomainMigrateUnmanagedProto3(virDomainPtr domain,
 
 
 /*
- * In normal migration, the libvirt client co-ordinates communication
+ * In normal migration, the libvirt client coordinates communication
  * between the 2 libvirtd instances on source & dest hosts.
  *
  * This function encapsulates 2 alternatives to the above case.
  *
  * 1. peer-2-peer migration, the libvirt client only talks to the source
  * libvirtd instance. The source libvirtd then opens its own
- * connection to the destination and co-ordinates migration itself.
+ * connection to the destination and coordinates migration itself.
  *
  * 2. direct migration, where there is no requirement for a libvirtd instance
  * on the dest host. Eg, XenD can talk direct to XenD, so libvirtd on dest
diff --git a/src/locking/virtlockd.service.in b/src/locking/virtlockd.service.in
index e7f8057c06..4a6fab05ab 100644
--- a/src/locking/virtlockd.service.in
+++ b/src/locking/virtlockd.service.in
@@ -10,7 +10,7 @@ Documentation=https://libvirt.org
 EnvironmentFile=-@sysconfdir@/sysconfig/virtlockd
 ExecStart=@sbindir@/virtlockd $VIRTLOCKD_ARGS
 ExecReload=/bin/kill -USR1 $MAINPID
-# Loosing the locks is a really bad thing that will
+# Losing the locks is a really bad thing that will
 # cause the machine to be fenced (rebooted), so make
 # sure we discourage OOM killer
 OOMScoreAdjust=-900
diff --git a/src/logging/virtlogd.service.in b/src/logging/virtlogd.service.in
index daff48e67d..8ab5478517 100644
--- a/src/logging/virtlogd.service.in
+++ b/src/logging/virtlogd.service.in
@@ -10,7 +10,7 @@ Documentation=https://libvirt.org
 EnvironmentFile=-@sysconfdir@/sysconfig/virtlogd
 ExecStart=@sbindir@/virtlogd $VIRTLOGD_ARGS
 ExecReload=/bin/kill -USR1 $MAINPID
-# Loosing the logs is a really bad thing that will
+# Losing the logs is a really bad thing that will
 # cause the machine to be fenced (rebooted), so make
 # sure we discourage OOM killer
 OOMScoreAdjust=-900
diff --git a/src/qemu/qemu_qapi.c b/src/qemu/qemu_qapi.c
index a793ae74dd..43f367f2a2 100644
--- a/src/qemu/qemu_qapi.c
+++ b/src/qemu/qemu_qapi.c
@@ -166,7 +166,7 @@ virQEMUQAPISchemaTraverseObject(virJSONValuePtr cur,
     if (!g_ascii_isalpha(modifier))
         query++;
 
-    /* exit on modifers for other types */
+    /* exit on modifiers for other types */
     if (modifier == '^' || modifier == '!')
         return 0;
 
@@ -219,7 +219,7 @@ virQEMUQAPISchemaTraverseCommand(virJSONValuePtr cur,
     if (!g_ascii_isalpha(modifier))
         query++;
 
-    /* exit on modifers for other types */
+    /* exit on modifiers for other types */
     if (modifier == '^' || modifier == '!' || modifier == '+' || modifier == '*')
         return 0;
 
diff --git a/src/remote/remote_daemon.c b/src/remote/remote_daemon.c
index 9eb2c2bc0d..7607da94be 100644
--- a/src/remote/remote_daemon.c
+++ b/src/remote/remote_daemon.c
@@ -454,7 +454,7 @@ static void daemonShutdownHandler(virNetDaemonPtr dmn,
     virNetDaemonQuit(dmn);
 }
 
-static void daemonReloadHandlerThread(void *opague G_GNUC_UNUSED)
+static void daemonReloadHandlerThread(void *opaque G_GNUC_UNUSED)
 {
     VIR_INFO("Reloading configuration on SIGHUP");
     virHookCall(VIR_HOOK_DRIVER_DAEMON, "-",
diff --git a/src/util/virbuffer.c b/src/util/virbuffer.c
index b78c3debe9..ebb4108b5d 100644
--- a/src/util/virbuffer.c
+++ b/src/util/virbuffer.c
@@ -528,7 +528,7 @@ virBufferEscape(virBufferPtr buf, char escape, const char *toescape,
  * @str: the string argument which will be URI-encoded
  *
  * Append the string to the buffer.  The string will be URI-encoded
- * during the append (ie any non alpha-numeric characters are replaced
+ * during the append (ie any non alphanumeric characters are replaced
  * with '%xx' hex sequences).  Auto indentation may be applied.
  */
 void
diff --git a/src/util/vireventglib.c b/src/util/vireventglib.c
index 7e61b096ed..6842c6e806 100644
--- a/src/util/vireventglib.c
+++ b/src/util/vireventglib.c
@@ -186,7 +186,7 @@ virEventGLibHandleFind(int watch)
 }
 
 /*
- * If the last refernce to a GSource is released in a non-main
+ * If the last reference to a GSource is released in a non-main
  * thread we're exposed to a race condition that causes a
  * crash:
  * https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1358
diff --git a/src/util/virhash.c b/src/util/virhash.c
index 36a2d312fc..abec757d99 100644
--- a/src/util/virhash.c
+++ b/src/util/virhash.c
@@ -12,7 +12,7 @@
  *
  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
- * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
  * CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
  */
 
diff --git a/src/util/virnetdevmacvlan.c b/src/util/virnetdevmacvlan.c
index 34bc0b90bd..f301a9e96c 100644
--- a/src/util/virnetdevmacvlan.c
+++ b/src/util/virnetdevmacvlan.c
@@ -872,7 +872,7 @@ virNetDevMacVLanCreateWithVPortProfile(const char *ifnameRequested,
                 ifname = g_strdup(ifnameRequested);
 
             } else if (!isAutoName) {
-                /* coudn't open ifnameRequested, but it wasn't an
+                /* couldn't open ifnameRequested, but it wasn't an
                  * autogenerated named, so there is nothing else to
                  * try - fail and return.
                  */
diff --git a/src/vbox/vbox_uniformed_api.h b/src/vbox/vbox_uniformed_api.h
index aa508cadca..42c4ad3dfb 100644
--- a/src/vbox/vbox_uniformed_api.h
+++ b/src/vbox/vbox_uniformed_api.h
@@ -27,7 +27,7 @@
  * The vbox_tmpl.c is the only place where the driver knows the inside
  * architecture of those vbox structs(vboxObj, vboxSession,
  * pFuncs, and vboxCallback). The file should be included
- * after the currect vbox_CAPI_v*.h, then we can use the vbox structs
+ * after the correct vbox_CAPI_v*.h, then we can use the vbox structs
  * in vboxGlobalData. The vbox_tmpl.c should implement functions
  * defined in vboxUniformedAPI.
  *
-- 
2.26.2




[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]

  Powered by Linux