Fix test_capability() typo

It was spelt 'capabilty'
This commit is contained in:
Christophe Fergeau 2014-03-04 17:26:21 +01:00
parent 24e2e60a59
commit 660d63253d
3 changed files with 10 additions and 10 deletions

View File

@ -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) {

View File

@ -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;

View File

@ -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)) {