summaryrefslogtreecommitdiffstats
path: root/server/red_channel.c
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 /server/red_channel.c
parent24e2e60a599d531090d98b46972d75be8d49ff46 (diff)
downloadspice-660d63253d26e96f3ddf0fc28608dbb345052bbe.tar.gz
spice-660d63253d26e96f3ddf0fc28608dbb345052bbe.tar.xz
spice-660d63253d26e96f3ddf0fc28608dbb345052bbe.zip
Fix test_capability() typo
It was spelt 'capabilty'
Diffstat (limited to 'server/red_channel.c')
-rw-r--r--server/red_channel.c14
1 files changed, 7 insertions, 7 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) {