From 210b9a14aaeb4208f985e5f9d8d0d36a4988c686 Mon Sep 17 00:00:00 2001 From: mom040267 Date: Sat, 2 May 2015 05:49:35 +0000 Subject: [PATCH] compilation warning fixed --- src/client/ns_turn_msg.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/client/ns_turn_msg.c b/src/client/ns_turn_msg.c index fbc0e0a4..d8dee793 100644 --- a/src/client/ns_turn_msg.c +++ b/src/client/ns_turn_msg.c @@ -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) @@ -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) @@ -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);