[asterisk-commits] branch group/res_config_ldap r26914 - /team/group/res_config_ldap/res/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 11 07:20:51 MST 2006


Author: russell
Date: Thu May 11 09:20:51 2006
New Revision: 26914

URL: http://svn.digium.com/view/asterisk?rev=26914&view=rev
Log:
update to current loader status to resolve compiler warnings

Modified:
    team/group/res_config_ldap/res/res_config_ldap.c

Modified: team/group/res_config_ldap/res/res_config_ldap.c
URL: http://svn.digium.com/view/asterisk/team/group/res_config_ldap/res/res_config_ldap.c?rev=26914&r1=26913&r2=26914&view=diff
==============================================================================
--- team/group/res_config_ldap/res/res_config_ldap.c (original)
+++ team/group/res_config_ldap/res/res_config_ldap.c Thu May 11 09:20:51 2006
@@ -1036,7 +1036,7 @@
 	.update_func = NULL
 };
 
-int load_module(void)
+static int load_module(void *mod)
 {
 	parse_config();
 
@@ -1058,7 +1058,7 @@
 	return 0;
 }
 
-int unload_module(void)
+static int unload_module(void *mod)
 {
 	/* Aquire control before doing anything to the module itself. */
 	ast_mutex_lock(&ldap_lock);
@@ -1083,7 +1083,7 @@
 	return 0;
 }
 
-int reload(void)
+static int reload(void *mod)
 {
 	/* Aquire control before doing anything to the module itself. */
 	ast_mutex_lock(&ldap_lock);
@@ -1200,23 +1200,12 @@
 	return 1;
 }
 
-const char *description(void)
+static const char *description(void)
 {
 	return res_config_ldap_desc;
 }
 
-int usecount(void)
-{
-	/* Try and get a lock. If unsuccessful, than that means another thread is using the ldap object. */
-	if (ast_mutex_trylock(&ldap_lock)) {
-		ast_log(LOG_DEBUG, "LDAP RealTime: Module usage count is 1.\n");
-		return 1;
-	}
-	ast_mutex_unlock(&ldap_lock);
-	return 0;
-}
-
-const char *key()
+static const char *key(void)
 {
 	return ASTERISK_GPL_KEY;
 }
@@ -1313,3 +1302,5 @@
 		return RESULT_FAILURE;
 	}
 }
+
+STD_MOD(MOD_1, reload, NULL, NULL);



More information about the asterisk-commits mailing list