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

@@ -1,7 +1,7 @@
/*
* Asterisk -- An open source telephony toolkit.
*
* Copyright (C) 1999 - 2005, Digium, Inc.
* Copyright (C) 1999 - 2006, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
*
@@ -297,7 +297,7 @@ int unload_module(void)
return __unload_module();
}
int load_module()
int load_module(void)
{
/* Make sure we can register our channel type */
if (ast_channel_register(&nbs_tech)) {
@@ -308,17 +308,17 @@ int load_module()
return 0;
}
int usecount()
int usecount(void)
{
return usecnt;
}
const char *description()
const char *description(void)
{
return (char *) desc;
}
const char *key()
const char *key(void)
{
return ASTERISK_GPL_KEY;
}