]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
maint: fix improper use of 'an' v0.9.8-rc2
authorEric Blake <eblake@redhat.com>
Sun, 4 Dec 2011 00:06:07 +0000 (17:06 -0700)
committerEric Blake <eblake@redhat.com>
Sun, 4 Dec 2011 00:11:56 +0000 (17:11 -0700)
https://bugzilla.redhat.com/show_bug.cgi?id=648855 mentioned a
misuse of 'an' where 'a' is proper; that has since been fixed,
but a search found other problems (some were a spelling error for
'and', while most were fixed by 'a').

* daemon/stream.c: Fix grammar.
* src/conf/domain_conf.c: Likewise.
* src/conf/domain_event.c: Likewise.
* src/esx/esx_driver.c: Likewise.
* src/esx/esx_vi.c: Likewise.
* src/rpc/virnetclient.c: Likewise.
* src/rpc/virnetserverprogram.c: Likewise.
* src/storage/storage_backend_fs.c: Likewise.
* src/util/conf.c: Likewise.
* src/util/dnsmasq.c: Likewise.
* src/util/iptables.c: Likewise.
* src/xen/xen_hypervisor.c: Likewise.
* src/xen/xend_internal.c: Likewise.
* src/xen/xs_internal.c: Likewise.
* tools/virsh.c: Likewise.

15 files changed:
daemon/stream.c
src/conf/domain_conf.c
src/conf/domain_event.c
src/esx/esx_driver.c
src/esx/esx_vi.c
src/rpc/virnetclient.c
src/rpc/virnetserverprogram.c
src/storage/storage_backend_fs.c
src/util/conf.c
src/util/dnsmasq.c
src/util/iptables.c
src/xen/xen_hypervisor.c
src/xen/xend_internal.c
src/xen/xs_internal.c
tools/virsh.c

index 50f8fd4ed838cd412194db91d3f3679b6ddeed56..bb66f754c5db4375c9b7c64c1245d97487285520 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * stream.c: APIs for managing client streams
  *
- * Copyright (C) 2009 Red Hat, Inc.
+ * Copyright (C) 2009, 2011 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -556,7 +556,7 @@ daemonStreamHandleWriteData(virNetServerClientPtr client,
 
 
 /*
- * Process an finish handshake from the client.
+ * Process a finish handshake from the client.
  *
  * Returns a VIR_NET_OK confirmation if successful, or a VIR_NET_ERROR
  * if there was a stream error
index 75f21dc6c78736cccff7d9cbbaf7c35fda3a1e6d..75e51a06a2acc24734ebfef00fe5a294fd634133 100644 (file)
@@ -4555,7 +4555,7 @@ error:
 }
 
 
-/* Parse the XML definition for an hub device */
+/* Parse the XML definition for a hub device */
 static virDomainHubDefPtr
 virDomainHubDefParseXML(xmlNodePtr node, unsigned int flags)
 {
index a04b9d08605ca64c603a04b52d693992b031e8f2..614ab97954d654afb759e7d25a30165b2add2b46 100644 (file)
@@ -1070,7 +1070,7 @@ virDomainEventQueuePop(virDomainEventQueuePtr evtQueue)
  * @evtQueue: the dom event queue
  * @event: the event to add
  *
- * Internal function to push onto the back of an virDomainEventQueue
+ * Internal function to push onto the back of a virDomainEventQueue
  *
  * Returns: 0 on success, -1 on failure
  */
index f8b3c7a60566255163c7a8f57db3a8e07afe18d2..1e424ebf625d77a1533b6ff3dbf9f046755bfb50 100644 (file)
@@ -267,7 +267,7 @@ esxParseVMXFileName(const char *fileName, void *opaque)
 
 
 /*
- * This function does the inverse of esxParseVMXFileName. It takes an file name
+ * This function does the inverse of esxParseVMXFileName. It takes a file name
  * in datastore path format or in absolute format and converts it to a file
  * name that can be used in a .vmx file.
  *
index 80f337b3be9df5424d84e9f3fcaf076883f9d2dd..14ad50ac4af6ecc3e6d6ad70f6a3579a111fd976 100644 (file)
@@ -1800,7 +1800,7 @@ esxVI_EnsureSession(esxVI_Context *ctx)
     if (ctx->hasSessionIsActive) {
         /*
          * Use SessionIsActive to check if there is an active session for this
-         * connection an re-login in there isn't.
+         * connection, and re-login if there isn't.
          */
         if (esxVI_SessionIsActive(ctx, ctx->session->key,
                                   ctx->session->userName, &active) < 0) {
index ec06f45a784b74107f9e7470f609e606530e764a..7f9a33222e648d27f4496b768004100356b2ca8b 100644 (file)
@@ -1701,7 +1701,7 @@ static int virNetClientSendInternal(virNetClientPtr client,
 
     if (expectReply && nonBlock) {
         virNetError(VIR_ERR_INTERNAL_ERROR, "%s",
-                    _("Attempt to send an non-blocking message with a synchronous reply"));
+                    _("Attempt to send a non-blocking message with a synchronous reply"));
         return -1;
     }
 
index bbd2d657ce7c8f19e32de31c5c1b9016a5f9222e..d2ede6bfc7a0b54c27cd100fbfaf055dcf6f5227 100644 (file)
@@ -340,7 +340,7 @@ cleanup:
  * @client: the unlocked client object
  * @msg: the complete incoming method call, with header already decoded
  *
- * This method is used to dispatch an message representing an
+ * This method is used to dispatch a message representing an
  * incoming method call from a client. It decodes the payload
  * to obtain method call arguments, invokves the method and
  * then sends a reply packet with the return values
index b5acd20ad1020c092d957381f01b27f45a708e67..d8dc29cf36db1b8afbef1f66c8049eda8a06784b 100644 (file)
@@ -880,7 +880,7 @@ virStorageBackendFileSystemRefresh(virConnectPtr conn ATTRIBUTE_UNUSED,
                                         VIR_STORAGE_VOL_OPEN_DEFAULT) < 0) {
                 /* The backing file is currently unavailable, the capacity,
                  * allocation, owner, group and mode are unknown. Just log the
-                 * error an continue.
+                 * error and continue.
                  * Unfortunately virStorageBackendProbeTarget() might already
                  * have logged a similar message for the same problem, but only
                  * if AUTO format detection was used. */
index c8dcc7f9535a86629b0875f71848ba3d3f56bed3..502dafb35ad82054ae5fdd25438e90283c56c472 100644 (file)
@@ -698,7 +698,7 @@ virConfParseStatement(virConfParserCtxtPtr ctxt)
  * Parse the subset of the Python language needed to handle simple
  * Xen configuration files.
  *
- * Returns an handle to lookup settings or NULL if it failed to
+ * Returns a handle to lookup settings or NULL if it failed to
  *         read or parse the file, use virConfFree() to free the data.
  */
 static virConfPtr
@@ -745,7 +745,7 @@ error:
  *
  * Reads a configuration file.
  *
- * Returns an handle to lookup settings or NULL if it failed to
+ * Returns a handle to lookup settings or NULL if it failed to
  *         read or parse the file, use virConfFree() to free the data.
  */
 virConfPtr
@@ -780,7 +780,7 @@ virConfReadFile(const char *filename, unsigned int flags)
  * Reads a configuration file loaded in memory. The string can be
  * zero terminated in which case @len can be 0
  *
- * Returns an handle to lookup settings or NULL if it failed to
+ * Returns a handle to lookup settings or NULL if it failed to
  *         parse the content, use virConfFree() to free the data.
  */
 virConfPtr
index b5f90a6d17748ae9af460b7b2136370e66427f4e..dcb719567f478bda5d03df786161be87251a08df 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2010 Red Hat, Inc.
+ * Copyright (C) 2007-2011 Red Hat, Inc.
  * Copyright (C) 2010 Satoru SATOH <satoru.satoh@gmail.com>
  *
  * This library is free software; you can redistribute it and/or
@@ -461,7 +461,7 @@ dnsmasqContextNew(const char *network_name,
  * dnsmasqContextFree:
  * @ctx: pointer to the dnsmasq context
  *
- * Free the resources associated with an dnsmasq context
+ * Free the resources associated with a dnsmasq context
  */
 void
 dnsmasqContextFree(dnsmasqContext *ctx)
index 452d7172965503693856c0a850d08728154ff3c0..302390075bbeebe3cbea89dc6017676c3b5c00ed 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2010 Red Hat, Inc.
+ * Copyright (C) 2007-2011 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -891,7 +891,7 @@ iptablesOutputFixUdpChecksum(iptablesContext *ctx,
  * @iface: the interface name
  * @port: the UDP port to match
  *
- * Add an rule to the mangle table's POSTROUTING chain that fixes up the
+ * Add a rule to the mangle table's POSTROUTING chain that fixes up the
  * checksum of packets with the given destination @port.
  * the given @iface interface for TCP packets.
  *
index 6c71b65bb55e1c2e20ed98b39679e02f3b3a3b92..941686f1bcb2a1feacef8d33a45baf78b7b22dd7 100644 (file)
@@ -556,7 +556,7 @@ typedef struct xen_v0_domainop xen_v0_domainop;
 #define XEN_V2_OP_UNPAUSEDOMAIN        4
 
 /*
- * The information for an setmaxmem system hypercall
+ * The information for a setmaxmem system hypercall
  */
 #define XEN_V0_OP_SETMAXMEM    28
 #define XEN_V1_OP_SETMAXMEM    28
@@ -580,7 +580,7 @@ struct xen_v2d5_setmaxmem {
 typedef struct xen_v2d5_setmaxmem xen_v2d5_setmaxmem;
 
 /*
- * The information for an setmaxvcpu system hypercall
+ * The information for a setmaxvcpu system hypercall
  */
 #define XEN_V0_OP_SETMAXVCPU   41
 #define XEN_V1_OP_SETMAXVCPU   41
@@ -599,7 +599,7 @@ struct xen_v2_setmaxvcpu {
 typedef struct xen_v2_setmaxvcpu xen_v2_setmaxvcpu;
 
 /*
- * The information for an setvcpumap system hypercall
+ * The information for a setvcpumap system hypercall
  * Note that between 1 and 2 the limitation to 64 physical CPU was lifted
  * hence the difference in structures
  */
@@ -647,7 +647,7 @@ struct xen_v2d5_setvcpumap {
 typedef struct xen_v2d5_setvcpumap xen_v2d5_setvcpumap;
 
 /*
- * The information for an vcpuinfo system hypercall
+ * The information for a vcpuinfo system hypercall
  */
 #define XEN_V0_OP_GETVCPUINFO   43
 #define XEN_V1_OP_GETVCPUINFO  43
@@ -866,8 +866,8 @@ virXenErrorFunc(virErrorNumber error, const char *func, const char *info,
  * @handle: the handle to the Xen hypervisor
  * @op: pointer to the hypervisor operation structure
  *
- * Do an hypervisor operation though the old interface,
- * this leads to an hypervisor call through ioctl.
+ * Do a hypervisor operation though the old interface,
+ * this leads to a hypervisor call through ioctl.
  *
  * Returns 0 in case of success and -1 in case of error.
  */
@@ -908,7 +908,7 @@ xenHypervisorDoV0Op(int handle, xen_op_v0 * op)
  * @handle: the handle to the Xen hypervisor
  * @op: pointer to the hypervisor operation structure
  *
- * Do an hypervisor v1 operation, this leads to an hypervisor call through
+ * Do a hypervisor v1 operation, this leads to a hypervisor call through
  * ioctl.
  *
  * Returns 0 in case of success and -1 in case of error.
@@ -951,7 +951,7 @@ xenHypervisorDoV1Op(int handle, xen_op_v1* op)
  * @handle: the handle to the Xen hypervisor
  * @op: pointer to the hypervisor operation structure
  *
- * Do an hypervisor v2 system operation, this leads to an hypervisor
+ * Do a hypervisor v2 system operation, this leads to a hypervisor
  * call through ioctl.
  *
  * Returns 0 in case of success and -1 in case of error.
@@ -994,7 +994,7 @@ xenHypervisorDoV2Sys(int handle, xen_op_v2_sys* op)
  * @handle: the handle to the Xen hypervisor
  * @op: pointer to the hypervisor domain operation structure
  *
- * Do an hypervisor v2 domain operation, this leads to an hypervisor
+ * Do a hypervisor v2 domain operation, this leads to a hypervisor
  * call through ioctl.
  *
  * Returns 0 in case of success and -1 in case of error.
@@ -3155,7 +3155,7 @@ xenHypervisorGetMaxMemory(virDomainPtr domain)
  * @id: the domain ID
  * @info: the place where information should be stored
  *
- * Do an hypervisor call to get the related set of domain information.
+ * Do a hypervisor call to get the related set of domain information.
  *
  * Returns 0 in case of success, -1 in case of error.
  */
@@ -3238,7 +3238,7 @@ xenHypervisorGetDomInfo(virConnectPtr conn, int id, virDomainInfoPtr info)
  * @domain: pointer to the domain block
  * @info: the place where information should be stored
  *
- * Do an hypervisor call to get the related set of domain information.
+ * Do a hypervisor call to get the related set of domain information.
  *
  * Returns 0 in case of success, -1 in case of error.
  */
@@ -3382,7 +3382,7 @@ xenHypervisorNodeGetCellsFreeMemory(virConnectPtr conn, unsigned long long *free
  * xenHypervisorPauseDomain:
  * @domain: pointer to the domain block
  *
- * Do an hypervisor call to pause the given domain
+ * Do a hypervisor call to pause the given domain
  *
  * Returns 0 in case of success, -1 in case of error.
  */
@@ -3409,7 +3409,7 @@ xenHypervisorPauseDomain(virDomainPtr domain)
  * xenHypervisorResumeDomain:
  * @domain: pointer to the domain block
  *
- * Do an hypervisor call to resume the given domain
+ * Do a hypervisor call to resume the given domain
  *
  * Returns 0 in case of success, -1 in case of error.
  */
@@ -3437,7 +3437,7 @@ xenHypervisorResumeDomain(virDomainPtr domain)
  * @domain: pointer to the domain block
  * @flags: an OR'ed set of virDomainDestroyFlagsValues
  *
- * Do an hypervisor call to destroy the given domain
+ * Do a hypervisor call to destroy the given domain
  *
  * Calling this function with no @flags set (equal to zero)
  * is equivalent to calling xenHypervisorDestroyDomain.
@@ -3471,7 +3471,7 @@ xenHypervisorDestroyDomainFlags(virDomainPtr domain,
  * @domain: pointer to the domain block
  * @memory: the max memory size in kilobytes.
  *
- * Do an hypervisor call to change the maximum amount of memory used
+ * Do a hypervisor call to change the maximum amount of memory used
  *
  * Returns 0 in case of success, -1 in case of error.
  */
@@ -3563,7 +3563,7 @@ xenHypervisorPinVcpu(virDomainPtr domain, unsigned int vcpu,
  * @domain: pointer to domain object, or NULL for Domain0
  * @info: pointer to an array of virVcpuInfo structures (OUT)
  * @maxinfo: number of structures in info array
- * @cpumaps: pointer to an bit map of real CPUs for all vcpus of this domain (in 8-bit bytes) (OUT)
+ * @cpumaps: pointer to a bit map of real CPUs for all vcpus of this domain (in 8-bit bytes) (OUT)
  *     If cpumaps is NULL, then no cpumap information is returned by the API.
  *     It's assumed there is <maxinfo> cpumap in cpumaps array.
  *     The memory allocated to cpumaps must be (maxinfo * maplen) bytes
index 16165fe1334d298924250e81c5a2b909de41a2c4..0c0b6cb9c8ae237bc15b8e3dc72c774bf0d32ef9 100644 (file)
@@ -2369,7 +2369,7 @@ xenDaemonDomainGetVcpusFlags(virDomainPtr domain, unsigned int flags)
  * @domain: pointer to domain object, or NULL for Domain0
  * @info: pointer to an array of virVcpuInfo structures (OUT)
  * @maxinfo: number of structures in info array
- * @cpumaps: pointer to an bit map of real CPUs for all vcpus of this domain (in 8-bit bytes) (OUT)
+ * @cpumaps: pointer to a bit map of real CPUs for all vcpus of this domain (in 8-bit bytes) (OUT)
  *     If cpumaps is NULL, then no cpumap information is returned by the API.
  *     It's assumed there is <maxinfo> cpumap in cpumaps array.
  *     The memory allocated to cpumaps must be (maxinfo * maplen) bytes
index 21018fd517825c65cc94769c0764de2005438ad6..a28e6cc8e14d143df183a55aaf1a121e9659cd05 100644 (file)
@@ -355,7 +355,7 @@ xenStoreClose(virConnectPtr conn)
  * @domain: pointer to the domain block
  * @info: the place where information should be stored
  *
- * Do an hypervisor call to get the related set of domain information.
+ * Do a hypervisor call to get the related set of domain information.
  *
  * Returns 0 in case of success, -1 in case of error.
  */
index be4df58317219734f98f10caef781cee708142fa..d02be5cd3095306d876620a702489c3ef44358db 100644 (file)
@@ -13233,7 +13233,7 @@ cmdCPUBaseline(vshControl *ctl, const vshCmd *cmd)
     if (virFileReadAll(from, VIRSH_MAX_XML_FILE, &buffer) < 0)
         return false;
 
-    /* add an separate container around the xml */
+    /* add a separate container around the xml */
     virBufferStrcat(&buf, "<container>", buffer, "</container>", NULL);
     if (virBufferError(&buf))
         goto no_memory;