Fix spelling (prefered -> preferred)
authorStefan Weil <sw@weilnetz.de>
Fri, 2 Nov 2012 07:14:12 +0000 (08:14 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 7 Dec 2012 11:34:11 +0000 (12:34 +0100)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
configure
net/tap-win32.c

index 447e6ed976c37d122f19f3e10cfd16b882465ca8..79605d2b7539e7488c62a1385e44a72a0c92d2e4 100755 (executable)
--- a/configure
+++ b/configure
@@ -2130,7 +2130,7 @@ if test "$pixman" = "system"; then
 else
   if test ! -d ${source_path}/pixman/pixman; then
     echo "ERROR: pixman not present. Your options:"
-    echo "  (1) Prefered: Install the pixman devel package (any recent"
+    echo "  (1) Preferred: Install the pixman devel package (any recent"
     echo "      distro should have packages as Xorg needs pixman too)."
     echo "  (2) Fetch the pixman submodule, using:"
     echo "      git submodule update --init pixman"
index 8d2d32b1c329c5556c6dc38e5be14ab9fd0814a3..f9bd74109cffbf9811a1d282c7e12c9f8bf9df21 100644 (file)
@@ -565,7 +565,7 @@ static void tap_win32_free_buffer(tap_win32_overlapped_t *overlapped,
 }
 
 static int tap_win32_open(tap_win32_overlapped_t **phandle,
-                          const char *prefered_name)
+                          const char *preferred_name)
 {
     char device_path[256];
     char device_guid[0x100];
@@ -581,8 +581,9 @@ static int tap_win32_open(tap_win32_overlapped_t **phandle,
     DWORD version_len;
     DWORD idThread;
 
-    if (prefered_name != NULL)
-        snprintf(name_buffer, sizeof(name_buffer), "%s", prefered_name);
+    if (preferred_name != NULL) {
+        snprintf(name_buffer, sizeof(name_buffer), "%s", preferred_name);
+    }
 
     rc = get_device_guid(device_guid, sizeof(device_guid), name_buffer, sizeof(name_buffer));
     if (rc)