Skip to content

Commit

Permalink
compilation warning fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mom040267 committed May 2, 2015
1 parent 2fc214d commit 210b9a1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/client/ns_turn_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1999,7 +1999,8 @@ static void normalize_algorithm(char *s)
}
}

static size_t calculate_enc_key_length(ENC_ALG a)
size_t calculate_enc_key_length(ENC_ALG a);
size_t calculate_enc_key_length(ENC_ALG a)
{
switch(a) {
#if !defined(TURN_NO_GCM)
Expand All @@ -2013,7 +2014,8 @@ static size_t calculate_enc_key_length(ENC_ALG a)
return 32;
}

static size_t calculate_auth_key_length(ENC_ALG a)
size_t calculate_auth_key_length(ENC_ALG a);
size_t calculate_auth_key_length(ENC_ALG a)
{
switch(a) {
#if !defined(TURN_NO_GCM)
Expand All @@ -2028,8 +2030,10 @@ static size_t calculate_auth_key_length(ENC_ALG a)
return 0;
}

static int calculate_key(char *key, size_t key_size,
char *new_key, size_t new_key_size)
int calculate_key(char *key, size_t key_size,
char *new_key, size_t new_key_size);
int calculate_key(char *key, size_t key_size,
char *new_key, size_t new_key_size)
{
UNUSED_ARG(key_size);

Expand Down

0 comments on commit 210b9a1

Please sign in to comment.