Mercurial > hg > freeDiameter
diff extensions/rt_redirect/rt_redir.c @ 1259:82280e745a89
Remove whitespace at end of line.
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Mon, 24 Mar 2014 13:13:38 +0100 |
parents | 4a9f08d6b6ba |
children | 4f6f61e67599 |
line wrap: on
line diff
--- a/extensions/rt_redirect/rt_redir.c Tue Feb 11 14:47:02 2014 +0100 +++ b/extensions/rt_redirect/rt_redir.c Mon Mar 24 13:13:38 2014 +0100 @@ -46,17 +46,17 @@ static int redir_entry(char * conffile) { TRACE_ENTRY(""); - + /* Dictionary objects */ CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Destination-Realm", &redir_dict_dr, ENOENT) ); CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "User-Name", &redir_dict_un, ENOENT) ); /* Initialize the entries array */ CHECK_FCT( redir_entry_init() ); - + /* Start the expire thread */ CHECK_POSIX( pthread_create( &exp_thr, NULL, redir_exp_thr_fct, NULL ) ); - + /* Register the callback that receives the answers and processes when it contains a Redirect indication. */ CHECK_FCT( fd_rt_fwd_register ( redir_fwd_cb, NULL, RT_FWD_ANS, &fwd_hdl ) ); @@ -72,7 +72,7 @@ void fd_ext_fini(void) { int i; - + /* Unregister the callbacks */ if (fwd_hdl) { CHECK_FCT_DO( fd_rt_fwd_unregister(fwd_hdl, NULL), ); @@ -80,10 +80,10 @@ if (out_hdl) { CHECK_FCT_DO( fd_rt_out_unregister(out_hdl, NULL), ); } - + /* Stop the expiry thread */ CHECK_FCT_DO( fd_thr_term(&exp_thr), ); - + /* Empty all entries */ CHECK_POSIX_DO( pthread_mutex_lock(&redir_exp_peer_lock), ); for (i = 0; i <= H_U_MAX; i++) { @@ -97,6 +97,6 @@ CHECK_POSIX_DO( pthread_rwlock_destroy( &redirects_usages[i].lock), ); } CHECK_POSIX_DO( pthread_mutex_unlock(&redir_exp_peer_lock), ); - + return; }