]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
normalize code in preparation to module changes
authorLuigi Rizzo <rizzo@icir.org>
Tue, 11 Apr 2006 10:01:00 +0000 (10:01 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Tue, 11 Apr 2006 10:01:00 +0000 (10:01 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19189 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c
res/res_clioriginate.c
res/res_config_odbc.c
res/res_config_pgsql.c
res/res_convert.c
res/res_crypto.c

index 8ff47e2616f9bbeca5348a91b7ddf334c9bf1a55..9f16c9faa95c3f0e4c9712f90ff9fa41729c0e10 100644 (file)
@@ -71,8 +71,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 /* Recycle some stuff from the CLI interface */
 #define fdprintf agi_debug_cli
 
-static char *tdesc = "Asterisk Gateway Interface (AGI)";
-
 static char *app = "AGI";
 
 static char *eapp = "EAGI";
@@ -2053,7 +2051,8 @@ int load_module(void)
 
 const char *description(void)
 {
-       return tdesc;
+       return "Asterisk Gateway Interface (AGI)";
+
 }
 
 int usecount(void)
@@ -2063,7 +2062,7 @@ int usecount(void)
        return res;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }
index 3b189cf8ac3fb12790a3f54e72807f0094de131e..6a26bc23c615b862ac21c40895c7e7edf5263cea 100644 (file)
@@ -44,8 +44,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$");
 
 STANDARD_USECOUNT_DECL;
 
-static char *tdesc = "Call origination from the CLI";
-
 static char orig_help[] = 
 "  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"
@@ -177,7 +175,8 @@ int load_module(void)
 
 const char *description(void)
 {
-       return tdesc;
+       return "Call origination from the CLI";
+
 }
 
 int usecount(void)
@@ -185,7 +184,7 @@ int usecount(void)
        return 0;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }
index febf839c5f64ecf8b7d3b18abdcc0f7b690e853b..b28059db532531f5900ab22344a998e5d0eaaeda 100644 (file)
@@ -48,8 +48,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/res_odbc.h"
 #include "asterisk/utils.h"
 
-static char *tdesc = "ODBC Configuration";
-
 LOCAL_USER_DECL;
 
 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)
 {
-       return tdesc;
+       return "ODBC Configuration";
+
 }
 
 int usecount (void)
@@ -536,7 +535,7 @@ int usecount (void)
        return 1;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }
index bcb179102a9a1fb4cc3757b5c755bcf57ef1d9e7..cf38386542b5dc5d96edda935d5e74b6800ba703 100644 (file)
@@ -41,8 +41,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/utils.h"
 #include "asterisk/cli.h"
 
-static char *res_config_pgsql_desc = "Postgresql RealTime Configuration Driver";
-
 AST_MUTEX_DEFINE_STATIC(pgsql_lock);
 
 #define RES_CONFIG_PGSQL_CONF "res_pgsql.conf"
@@ -695,7 +693,8 @@ int parse_config(void)
 
 const char *description(void)
 {
-       return res_config_pgsql_desc;
+       return "Postgresql RealTime Configuration Driver";
+
 }
 
 int usecount(void)
@@ -709,7 +708,7 @@ int usecount(void)
        return 0;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }
index eea93f838076030abd15f1a9d91476e8032f6b5d..be441bc4b9ceb41126ea4c0625374fb5203d6bea 100644 (file)
@@ -41,8 +41,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
 STANDARD_USECOUNT_DECL;
 
-static char *desc = "File format conversion CLI command";
-
 /*! \brief Split the filename to basename and extension */
 static int split_ext(char *filename, char **name, char **ext)
 {
@@ -146,19 +144,18 @@ int load_module(void)
 
 const char *description(void)
 {
-       return desc;
+       return "File format conversion CLI command";
+
 }
 
 int usecount(void)
 {
        int res;
-       
        STANDARD_USECOUNT(res);
-
        return res;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }
index accabd16b5fa636c1d72d07c4bf51e3faf706375..ea0f05ae6f3fe858dd90b82f830f9ce25e047fb1 100644 (file)
@@ -614,7 +614,7 @@ int usecount(void)
        return 1;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }