normalize code in preparation to module changes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2006-04-11 10:01:00 +00:00
parent 6b2d947b62
commit 7507309732
6 changed files with 16 additions and 23 deletions

View File

@@ -71,8 +71,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
/* Recycle some stuff from the CLI interface */ /* Recycle some stuff from the CLI interface */
#define fdprintf agi_debug_cli #define fdprintf agi_debug_cli
static char *tdesc = "Asterisk Gateway Interface (AGI)";
static char *app = "AGI"; static char *app = "AGI";
static char *eapp = "EAGI"; static char *eapp = "EAGI";
@@ -2053,7 +2051,8 @@ int load_module(void)
const char *description(void) const char *description(void)
{ {
return tdesc; return "Asterisk Gateway Interface (AGI)";
} }
int usecount(void) int usecount(void)
@@ -2063,7 +2062,7 @@ int usecount(void)
return res; return res;
} }
const char *key() const char *key(void)
{ {
return ASTERISK_GPL_KEY; return ASTERISK_GPL_KEY;
} }

View File

@@ -44,8 +44,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$");
STANDARD_USECOUNT_DECL; STANDARD_USECOUNT_DECL;
static char *tdesc = "Call origination from the CLI";
static char orig_help[] = static char orig_help[] =
" There are two ways to use this command. A call can be originated between a\n" " There are two ways to use this command. A call can be originated between a\n"
"channel and a specific application, or between a channel and an extension in\n" "channel and a specific application, or between a channel and an extension in\n"
@@ -177,7 +175,8 @@ int load_module(void)
const char *description(void) const char *description(void)
{ {
return tdesc; return "Call origination from the CLI";
} }
int usecount(void) int usecount(void)
@@ -185,7 +184,7 @@ int usecount(void)
return 0; return 0;
} }
const char *key() const char *key(void)
{ {
return ASTERISK_GPL_KEY; return ASTERISK_GPL_KEY;
} }

View File

@@ -48,8 +48,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/res_odbc.h" #include "asterisk/res_odbc.h"
#include "asterisk/utils.h" #include "asterisk/utils.h"
static char *tdesc = "ODBC Configuration";
LOCAL_USER_DECL; LOCAL_USER_DECL;
static struct ast_variable *realtime_odbc(const char *database, const char *table, va_list ap) static struct ast_variable *realtime_odbc(const char *database, const char *table, va_list ap)
@@ -527,7 +525,8 @@ int load_module (void)
const char *description(void) const char *description(void)
{ {
return tdesc; return "ODBC Configuration";
} }
int usecount (void) int usecount (void)
@@ -536,7 +535,7 @@ int usecount (void)
return 1; return 1;
} }
const char *key() const char *key(void)
{ {
return ASTERISK_GPL_KEY; return ASTERISK_GPL_KEY;
} }

View File

@@ -41,8 +41,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/utils.h" #include "asterisk/utils.h"
#include "asterisk/cli.h" #include "asterisk/cli.h"
static char *res_config_pgsql_desc = "Postgresql RealTime Configuration Driver";
AST_MUTEX_DEFINE_STATIC(pgsql_lock); AST_MUTEX_DEFINE_STATIC(pgsql_lock);
#define RES_CONFIG_PGSQL_CONF "res_pgsql.conf" #define RES_CONFIG_PGSQL_CONF "res_pgsql.conf"
@@ -695,7 +693,8 @@ int parse_config(void)
const char *description(void) const char *description(void)
{ {
return res_config_pgsql_desc; return "Postgresql RealTime Configuration Driver";
} }
int usecount(void) int usecount(void)
@@ -709,7 +708,7 @@ int usecount(void)
return 0; return 0;
} }
const char *key() const char *key(void)
{ {
return ASTERISK_GPL_KEY; return ASTERISK_GPL_KEY;
} }

View File

@@ -41,8 +41,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
STANDARD_USECOUNT_DECL; STANDARD_USECOUNT_DECL;
static char *desc = "File format conversion CLI command";
/*! \brief Split the filename to basename and extension */ /*! \brief Split the filename to basename and extension */
static int split_ext(char *filename, char **name, char **ext) static int split_ext(char *filename, char **name, char **ext)
{ {
@@ -146,19 +144,18 @@ int load_module(void)
const char *description(void) const char *description(void)
{ {
return desc; return "File format conversion CLI command";
} }
int usecount(void) int usecount(void)
{ {
int res; int res;
STANDARD_USECOUNT(res); STANDARD_USECOUNT(res);
return res; return res;
} }
const char *key() const char *key(void)
{ {
return ASTERISK_GPL_KEY; return ASTERISK_GPL_KEY;
} }

View File

@@ -614,7 +614,7 @@ int usecount(void)
return 1; return 1;
} }
const char *key() const char *key(void)
{ {
return ASTERISK_GPL_KEY; return ASTERISK_GPL_KEY;
} }