[asterisk-commits] trunk r37288 - /trunk/res/res_config_pgsql.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Jul 6 23:58:17 MST 2006
Author: russell
Date: Fri Jul 7 01:58:16 2006
New Revision: 37288
URL: http://svn.digium.com/view/asterisk?rev=37288&view=rev
Log:
remove the unused usecount function to eliminate a compiler warning
Modified:
trunk/res/res_config_pgsql.c
Modified: trunk/res/res_config_pgsql.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_config_pgsql.c?rev=37288&r1=37287&r2=37288&view=diff
==============================================================================
--- trunk/res/res_config_pgsql.c (original)
+++ trunk/res/res_config_pgsql.c Fri Jul 7 01:58:16 2006
@@ -700,18 +700,6 @@
{
return "Postgresql RealTime Configuration Driver";
-}
-
-static int usecount(void)
-{
- /* XXX check this... */
- /* Try and get a lock. If unsuccessful, than that means another thread is using the pgsql object. */
- if (ast_mutex_trylock(&pgsql_lock)) {
- ast_log(LOG_DEBUG, "Postgresql RealTime: Module usage count is 1.\n");
- return 1;
- }
- ast_mutex_unlock(&pgsql_lock);
- return 0;
}
static const char *key(void)
More information about the asterisk-commits
mailing list