]> xenbits.xensource.com Git - libvirt.git/commitdiff
maint: fix grammar errors
authorEric Blake <eblake@redhat.com>
Mon, 11 Apr 2011 22:25:25 +0000 (16:25 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 12 Apr 2011 15:06:14 +0000 (09:06 -0600)
Jim Meyering recently improved gnulib to catch various grammar
errors during 'make syntax-check'.

* .gnulib: Update to latest, for syntax-check improvements.
* include/libvirt/libvirt.h.in (virConnectAuthCallbackPtr): Use
cannot rather than two words.
* src/driver.c: Likewise.
* src/driver.h (VIR_SECRET_GET_VALUE_INTERNAL_CALL): Likewise.
* src/remote/remote_driver.c (initialize_gnutls): Likewise.
* src/util/pci.c (pciBindDeviceToStub): Likewise.
* src/storage/storage_backend.c (virStorageBackendCreateQemuImg):
Likewise.
(virStorageBackendUpdateVolTargetInfoFD): Avoid doubled word.
* docs/formatdomain.html.in: Likewise.
* src/qemu/qemu_process.c (qemuProcessStart): Likewise.
* cfg.mk (exclude_file_name_regexp--sc_prohibit_can_not)
(exclude_file_name_regexp--sc_prohibit_doubled_word): Exclude
existing translation problems.

.gnulib
cfg.mk
docs/formatdomain.html.in
include/libvirt/libvirt.h.in
src/driver.c
src/driver.h
src/qemu/qemu_process.c
src/remote/remote_driver.c
src/storage/storage_backend.c
src/util/pci.c

diff --git a/.gnulib b/.gnulib
index 4a1579d7560659ef5723325726eda14490a967f6..fb799692f5bb43310424977e0ca15599fc68d776 160000 (submodule)
--- a/.gnulib
+++ b/.gnulib
@@ -1 +1 @@
-Subproject commit 4a1579d7560659ef5723325726eda14490a967f6
+Subproject commit fb799692f5bb43310424977e0ca15599fc68d776
diff --git a/cfg.mk b/cfg.mk
index 4ed0d96febd78927b0205492d6d944a50fd27e87..94db9379a1210ee6d2381e8958d218b7e3c748c5 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -573,9 +573,13 @@ exclude_file_name_regexp--sc_prohibit_always_true_header_tests = \
 exclude_file_name_regexp--sc_prohibit_asprintf = \
   ^(bootstrap.conf$$|po/|src/util/util\.c$$|examples/domain-events/events-c/event-test\.c$$)
 
+exclude_file_name_regexp--sc_prohibit_can_not = ^po/
+
 exclude_file_name_regexp--sc_prohibit_close = \
   (\.py$$|^docs/|(src/util/files\.c|src/libvirt\.c)$$)
 
+exclude_file_name_regexp--sc_prohibit_doubled_word = ^po/
+
 exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \
   (^docs/api_extension/|^tests/qemuhelpdata/|\.(gif|ico|png)$$)
 
index 574fee5d5ab2f067631d944c1f973119c45a5452..3c4c656b47ddf82da7f382afe5e8c0ff6c07c2a0 100644 (file)
         <span class="since">Since 0.0.3; "device" attribute since 0.1.4;
         "network" attribute since 0.8.7</span></dd>
       <dt><code>source</code></dt>
-      <dd>If the disk <code>type</code> is "file", then the
+      <dd>If the disk <code>type</code> is "file", then
         the <code>file</code> attribute specifies the fully-qualified
         path to the file holding the disk. If the disk
         <code>type</code> is "block", then the <code>dev</code>
index 04b7fbf2c80cafc87a96f7ac3247c6df84d33c75..57833039b2684c7650b743e1f3dcfca7890180e4 100644 (file)
@@ -505,7 +505,7 @@ typedef virConnectCredential *virConnectCredentialPtr;
  * When authentication requires one or more interactions, this callback
  * is invoked. For each interaction supplied, data must be gathered
  * from the user and filled in to the 'result' and 'resultlen' fields.
- * If an interaction can not be filled, fill in NULL and 0.
+ * If an interaction cannot be filled, fill in NULL and 0.
  *
  * Returns 0 if all interactions were filled, or -1 upon error
  */
index f882ea1eb4f59e860bafa5aff0aa5eec3a447030..579c2b34853876889b5a20c8618891391ccc0b3e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * driver.c: Helpers for loading drivers
  *
- * Copyright (C) 2006-2010 Red Hat, Inc.
+ * Copyright (C) 2006-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
@@ -32,7 +32,7 @@
 
 #define DEFAULT_DRIVER_DIR LIBDIR "/libvirt/connection-driver"
 
-/* Make sure ... INTERNAL_CALL can not be set by the caller */
+/* Make sure ... INTERNAL_CALL cannot be set by the caller */
 verify((VIR_SECRET_GET_VALUE_INTERNAL_CALL &
         VIR_SECRET_GET_VALUE_FLAGS_MASK) == 0);
 
index e5f91ca93d2f111ea018b3e4b259402591eba742..a8b79e6cfa2c03eded6ddcbde0c6641990754c2c 100644 (file)
@@ -1063,7 +1063,7 @@ struct _virDeviceMonitor {
 
 enum {
     /* This getValue call is inside libvirt, override the "private" flag.
-       This flag can not be set by outside callers. */
+       This flag cannot be set by outside callers. */
     VIR_SECRET_GET_VALUE_INTERNAL_CALL = 1 << 16
 };
 
index 9ada24d6dbfa65f600390ad8bf14aa38069996d9..7295f9ee14fea1b2c0c73a9df7e1b35f565b8562 100644 (file)
@@ -2326,7 +2326,7 @@ int qemuProcessStart(virConnectPtr conn,
     ret = virCommandRun(cmd, NULL);
     VIR_FREE(pidfile);
 
-    /* wait for qemu process to to show up */
+    /* wait for qemu process to show up */
     if (ret == 0) {
         if (virFileReadPid(driver->stateDir, vm->def->name, &vm->pid)) {
             qemuReportError(VIR_ERR_INTERNAL_ERROR,
index 9310ddf66b7b9d65dccb48c09161642d89ca5095..5cb4f4cb230c6a88dc853cbb62a7529609c04748 100644 (file)
@@ -1223,7 +1223,7 @@ initialize_gnutls(char *pkipath, int flags)
             goto out_of_memory;
 
         /* Use default location as long as one of CA certificate,
-         * client key, and client certificate can not be found in
+         * client key, and client certificate cannot be found in
          * $HOME/.pki/libvirt, we don't want to make user confused
          * with one file is here, the other is there.
          */
index 8af2878bed72de5ab9b71b8af2e655aa89c568b8..97a7e4b8e7a1152f320d532bd03387756a231f46 100644 (file)
@@ -703,7 +703,7 @@ virStorageBackendCreateQemuImg(virConnectPtr conn,
             (!inputBackingPath ||
              STRNEQ(inputBackingPath, vol->backingStore.path))) {
             virStorageReportError(VIR_ERR_INTERNAL_ERROR,
-                                  "%s", _("a different backing store can not "
+                                  "%s", _("a different backing store cannot "
                                           "be specified."));
             return -1;
         }
@@ -1188,7 +1188,7 @@ virStorageBackendUpdateVolTargetInfoFD(virStorageVolTargetPtr target,
                 *capacity = sb.st_size;
         } else {
             off_t end;
-            /* XXX this is POSIX compliant, but doesn't work for for CHAR files,
+            /* XXX this is POSIX compliant, but doesn't work for CHAR files,
              * only BLOCK. There is a Linux specific ioctl() for getting
              * size of both CHAR / BLOCK devices we should check for in
              * configure
index 248afd372175d338d0a12e17e044917b3dbeeb4e..ff950d15565e8737e458b03d6f6044e6171a4aee 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009-2010 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
@@ -1073,7 +1073,7 @@ remove_id:
      * ID table so that 'drivers_probe' works below.
      */
     if (pciDriverFile(&path, driver, "remove_id") < 0) {
-        /* We do not remove PCI ID from pci-stub, and we can not reprobe it */
+        /* We do not remove PCI ID from pci-stub, and we cannot reprobe it */
         if (dev->reprobe) {
             VIR_WARN("Could not remove PCI ID '%s' from %s, and the device "
                      "cannot be probed again.", dev->id, driver);
@@ -1087,7 +1087,7 @@ remove_id:
                              _("Failed to remove PCI ID '%s' from %s"),
                              dev->id, driver);
 
-        /* remove PCI ID from pci-stub failed, and we can not reprobe it */
+        /* remove PCI ID from pci-stub failed, and we cannot reprobe it */
         if (dev->reprobe) {
             VIR_WARN("Failed to remove PCI ID '%s' from %s, and the device "
                      "cannot be probed again.", dev->id, driver);