From d04efdb7ac5a8d41536dc90ef3f2a8bb5f792de9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Thu, 24 Apr 2014 20:39:20 -0400 Subject: [PATCH] conncheck: Make conn_check_free_item() static It is never used outside of this file. --- agent/conncheck.c | 3 ++- agent/conncheck.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/conncheck.c b/agent/conncheck.c index 1dc0b5b..df9c079 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -71,6 +71,7 @@ static size_t priv_create_username (NiceAgent *agent, Stream *stream, uint8_t *dest, guint dest_len, gboolean inbound); static size_t priv_get_password (NiceAgent *agent, Stream *stream, NiceCandidate *remote, uint8_t **password); +static void conn_check_free_item (gpointer data, gpointer user_data); static int priv_timer_expired (GTimeVal *timer, GTimeVal *now) { @@ -1397,7 +1398,7 @@ int conn_check_add_for_local_candidate (NiceAgent *agent, guint stream_id, Compo * Frees the CandidateCheckPair structure pointer to * by 'user data'. Compatible with g_slist_foreach(). */ -void conn_check_free_item (gpointer data, gpointer user_data) +static void conn_check_free_item (gpointer data, gpointer user_data) { CandidateCheckPair *pair = data; g_assert (user_data == NULL); diff --git a/agent/conncheck.h b/agent/conncheck.h index e569f03..9703e1f 100644 --- a/agent/conncheck.h +++ b/agent/conncheck.h @@ -83,7 +83,6 @@ struct _CandidateCheckPair int conn_check_add_for_candidate (NiceAgent *agent, guint stream_id, Component *component, NiceCandidate *remote); int conn_check_add_for_local_candidate (NiceAgent *agent, guint stream_id, Component *component, NiceCandidate *local); -void conn_check_free_item (gpointer data, gpointer user_data); void conn_check_free (NiceAgent *agent); gboolean conn_check_schedule_next (NiceAgent *agent); int conn_check_send (NiceAgent *agent, CandidateCheckPair *pair); -- 2.7.4