summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-03-04 17:26:21 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2014-03-13 17:13:38 +0100
commit660d63253d26e96f3ddf0fc28608dbb345052bbe (patch)
treee4e1570274286c3e3a83a56a31902dff3b278898
parent24e2e60a599d531090d98b46972d75be8d49ff46 (diff)
downloadspice-660d63253d26e96f3ddf0fc28608dbb345052bbe.tar.gz
spice-660d63253d26e96f3ddf0fc28608dbb345052bbe.tar.xz
spice-660d63253d26e96f3ddf0fc28608dbb345052bbe.zip
Fix test_capability() typo
It was spelt 'capabilty'
-rw-r--r--server/red_channel.c14
-rw-r--r--server/red_channel.h2
-rw-r--r--server/reds.c4
3 files changed, 10 insertions, 10 deletions
diff --git a/server/red_channel.c b/server/red_channel.c
index b81deeb0..4f853651 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -684,16 +684,16 @@ static void red_channel_client_destroy_remote_caps(RedChannelClient* rcc)
int red_channel_client_test_remote_common_cap(RedChannelClient *rcc, uint32_t cap)
{
- return test_capabilty(rcc->remote_caps.common_caps,
- rcc->remote_caps.num_common_caps,
- cap);
+ return test_capability(rcc->remote_caps.common_caps,
+ rcc->remote_caps.num_common_caps,
+ cap);
}
int red_channel_client_test_remote_cap(RedChannelClient *rcc, uint32_t cap)
{
- return test_capabilty(rcc->remote_caps.caps,
- rcc->remote_caps.num_caps,
- cap);
+ return test_capability(rcc->remote_caps.caps,
+ rcc->remote_caps.num_caps,
+ cap);
}
int red_channel_test_remote_common_cap(RedChannel *channel, uint32_t cap)
@@ -1172,7 +1172,7 @@ void red_channel_register_client_cbs(RedChannel *channel, ClientCbs *client_cbs)
}
}
-int test_capabilty(uint32_t *caps, int num_caps, uint32_t cap)
+int test_capability(uint32_t *caps, int num_caps, uint32_t cap)
{
uint32_t index = cap / 32;
if (num_caps < index + 1) {
diff --git a/server/red_channel.h b/server/red_channel.h
index f638d3c7..f9cfb95e 100644
--- a/server/red_channel.h
+++ b/server/red_channel.h
@@ -223,7 +223,7 @@ typedef struct RedChannelCapabilities {
uint32_t *caps;
} RedChannelCapabilities;
-int test_capabilty(uint32_t *caps, int num_caps, uint32_t cap);
+int test_capability(uint32_t *caps, int num_caps, uint32_t cap);
typedef struct RedChannelClientLatencyMonitor {
int state;
diff --git a/server/reds.c b/server/reds.c
index 2d0c1c0c..2ef4aade 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -2054,8 +2054,8 @@ static void reds_handle_read_link_done(void *opaque)
return;
}
- auth_selection = test_capabilty(caps, link_mess->num_common_caps,
- SPICE_COMMON_CAP_PROTOCOL_AUTH_SELECTION);
+ auth_selection = test_capability(caps, link_mess->num_common_caps,
+ SPICE_COMMON_CAP_PROTOCOL_AUTH_SELECTION);
if (!reds_security_check(link)) {
if (reds_stream_is_ssl(link->stream)) {