more module loader related fixes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20963 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2006-04-17 16:42:21 +00:00
parent 987f24840c
commit 2229586d71
7 changed files with 143 additions and 164 deletions

View File

@@ -164,12 +164,12 @@ static int sqlite_log(struct ast_cdr *cdr)
}
const char *description(void)
static const char *description(void)
{
return desc;
}
int unload_module(void)
static int unload_module(void *mod)
{
if (db)
sqlite_close(db);
@@ -177,7 +177,7 @@ int unload_module(void)
return 0;
}
int load_module(void)
static int load_module(void *mod)
{
char *zErr;
char fn[PATH_MAX];
@@ -218,17 +218,14 @@ err:
return -1;
}
int reload(void)
static int reload(void *mod)
{
return 0;
}
int usecount(void)
{
return 0;
}
const char *key()
static const char *key(void)
{
return ASTERISK_GPL_KEY;
}
STD_MOD(MOD_0, reload, NULL, NULL);