src: fix misc spelling errors reported by codespell

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2020-10-02 15:07:27 +01:00
parent 0ea50f0148
commit f7a1805a7d
11 changed files with 14 additions and 14 deletions

View File

@ -2252,7 +2252,7 @@ esxVI_GetBoolean(esxVI_ObjectContent *objectContent, const char *propertyName,
int int
esxVI_GetInt(esxVI_ObjectContent *objectContent, const char *propertyName, esxVI_GetInt(esxVI_ObjectContent *objectContent, const char *propertyName,
esxVI_Int **value, esxVI_Occurrence occurence) esxVI_Int **value, esxVI_Occurrence occurrence)
{ {
esxVI_DynamicProperty *dynamicProperty; 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, virReportError(VIR_ERR_INTERNAL_ERROR,
_("Missing '%s' property"), propertyName); _("Missing '%s' property"), propertyName);
return -1; return -1;

View File

@ -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. * between the 2 libvirtd instances on source & dest hosts.
* *
* This function encapsulates 2 alternatives to the above case. * This function encapsulates 2 alternatives to the above case.
* *
* 1. peer-2-peer migration, the libvirt client only talks to the source * 1. peer-2-peer migration, the libvirt client only talks to the source
* libvirtd instance. The source libvirtd then opens its own * 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 * 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 * on the dest host. Eg, XenD can talk direct to XenD, so libvirtd on dest

View File

@ -10,7 +10,7 @@ Documentation=https://libvirt.org
EnvironmentFile=-@sysconfdir@/sysconfig/virtlockd EnvironmentFile=-@sysconfdir@/sysconfig/virtlockd
ExecStart=@sbindir@/virtlockd $VIRTLOCKD_ARGS ExecStart=@sbindir@/virtlockd $VIRTLOCKD_ARGS
ExecReload=/bin/kill -USR1 $MAINPID 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 # cause the machine to be fenced (rebooted), so make
# sure we discourage OOM killer # sure we discourage OOM killer
OOMScoreAdjust=-900 OOMScoreAdjust=-900

View File

@ -10,7 +10,7 @@ Documentation=https://libvirt.org
EnvironmentFile=-@sysconfdir@/sysconfig/virtlogd EnvironmentFile=-@sysconfdir@/sysconfig/virtlogd
ExecStart=@sbindir@/virtlogd $VIRTLOGD_ARGS ExecStart=@sbindir@/virtlogd $VIRTLOGD_ARGS
ExecReload=/bin/kill -USR1 $MAINPID 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 # cause the machine to be fenced (rebooted), so make
# sure we discourage OOM killer # sure we discourage OOM killer
OOMScoreAdjust=-900 OOMScoreAdjust=-900

View File

@ -166,7 +166,7 @@ virQEMUQAPISchemaTraverseObject(virJSONValuePtr cur,
if (!g_ascii_isalpha(modifier)) if (!g_ascii_isalpha(modifier))
query++; query++;
/* exit on modifers for other types */ /* exit on modifiers for other types */
if (modifier == '^' || modifier == '!') if (modifier == '^' || modifier == '!')
return 0; return 0;
@ -219,7 +219,7 @@ virQEMUQAPISchemaTraverseCommand(virJSONValuePtr cur,
if (!g_ascii_isalpha(modifier)) if (!g_ascii_isalpha(modifier))
query++; query++;
/* exit on modifers for other types */ /* exit on modifiers for other types */
if (modifier == '^' || modifier == '!' || modifier == '+' || modifier == '*') if (modifier == '^' || modifier == '!' || modifier == '+' || modifier == '*')
return 0; return 0;

View File

@ -454,7 +454,7 @@ static void daemonShutdownHandler(virNetDaemonPtr dmn,
virNetDaemonQuit(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"); VIR_INFO("Reloading configuration on SIGHUP");
virHookCall(VIR_HOOK_DRIVER_DAEMON, "-", virHookCall(VIR_HOOK_DRIVER_DAEMON, "-",

View File

@ -528,7 +528,7 @@ virBufferEscape(virBufferPtr buf, char escape, const char *toescape,
* @str: the string argument which will be URI-encoded * @str: the string argument which will be URI-encoded
* *
* Append the string to the buffer. The string 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. * with '%xx' hex sequences). Auto indentation may be applied.
*/ */
void void

View File

@ -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 * thread we're exposed to a race condition that causes a
* crash: * crash:
* https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1358 * https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1358

View File

@ -12,7 +12,7 @@
* *
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF * 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. * CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
*/ */

View File

@ -872,7 +872,7 @@ virNetDevMacVLanCreateWithVPortProfile(const char *ifnameRequested,
ifname = g_strdup(ifnameRequested); ifname = g_strdup(ifnameRequested);
} else if (!isAutoName) { } 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 * autogenerated named, so there is nothing else to
* try - fail and return. * try - fail and return.
*/ */

View File

@ -27,7 +27,7 @@
* The vbox_tmpl.c is the only place where the driver knows the inside * The vbox_tmpl.c is the only place where the driver knows the inside
* architecture of those vbox structs(vboxObj, vboxSession, * architecture of those vbox structs(vboxObj, vboxSession,
* pFuncs, and vboxCallback). The file should be included * 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 * in vboxGlobalData. The vbox_tmpl.c should implement functions
* defined in vboxUniformedAPI. * defined in vboxUniformedAPI.
* *