summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-11-02 08:14:12 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2012-12-07 12:34:11 +0100
commiteac29d87c883fcbb54913ae20ed2bdccb4bcf7a3 (patch)
treeb1a58017d40eca9f3352ddec2b55cf702cb7b4b9 /net
parentbb5b5c20b7f68c79e036cd3ec5e9e6362c112670 (diff)
Fix spelling (prefered -> preferred)
Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'net')
-rw-r--r--net/tap-win32.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/tap-win32.c b/net/tap-win32.c
index 8d2d32b1c3..f9bd74109c 100644
--- a/net/tap-win32.c
+++ b/net/tap-win32.c
@@ -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)