]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
normalize code preparing for loader changes
authorLuigi Rizzo <rizzo@icir.org>
Tue, 11 Apr 2006 15:19:34 +0000 (15:19 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Tue, 11 Apr 2006 15:19:34 +0000 (15:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19220 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_adsiprog.c
apps/app_alarmreceiver.c
apps/app_amd.c
apps/app_authenticate.c
apps/app_chanisavail.c
apps/app_channelredirect.c
apps/app_controlplayback.c
apps/app_db.c
apps/app_dial.c

index 71cfb6940d39eaab55c6e6647e39c15537496ef2..0ac46181f39d30b6373ca428aeb6868b2b060551 100644 (file)
@@ -49,8 +49,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/utils.h"
 #include "asterisk/lock.h"
 
-static char *tdesc = "Asterisk ADSI Programming Application";
-
 static char *app = "ADSIProg";
 
 static char *synopsis = "Load Asterisk ADSI Scripts into phone";
@@ -1588,7 +1586,7 @@ int load_module(void)
 
 const char *description(void)
 {
-       return tdesc;
+       return "Asterisk ADSI Programming Application";
 }
 
 int usecount(void)
@@ -1598,7 +1596,7 @@ int usecount(void)
        return res;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }
index 4389edecd8c84eceb43dbb6cabde73d3ddc87857..e268458861c2a63ca0fbcc0cd198948e3a509249 100644 (file)
@@ -68,8 +68,6 @@ struct event_node{
 
 typedef struct event_node event_node_t;
 
-static char *tdesc = "Alarm Receiver for Asterisk";
-
 static char *app = "AlarmReceiver";
 
 static char *synopsis = "Provide support for receving alarm reports from a burglar or fire alarm panel";
@@ -839,7 +837,7 @@ int load_module(void)
 
 const char *description(void)
 {
-       return tdesc;
+       return "Alarm Receiver for Asterisk";
 }
 
 int usecount(void)
@@ -849,7 +847,7 @@ int usecount(void)
        return res;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }
index 54cd21af4b0087ab83a546f551fe68b6a3116388..c054b2abf47389130d7048f3d5c9ae89175cd62d 100644 (file)
@@ -35,7 +35,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/app.h"
 
 
-static char *tdesc = "Answering Machine Detection Application";
 static char *app = "AMD";
 static char *synopsis = "Attempts to detect answering machines";
 static char *descrip =
@@ -413,7 +412,7 @@ int reload(void)
 
 const char *description(void)
 {
-       return tdesc;
+       return "Answering Machine Detection Application";
 }
 
 int usecount(void)
@@ -423,7 +422,7 @@ int usecount(void)
        return res;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }
index f6bb42ece2b05740b262ed94fd9e585594874679..259789747f93ad898a3c5a9ccee2e478c1e35e12 100644 (file)
@@ -62,7 +62,6 @@ AST_APP_OPTIONS(auth_app_options, {
        AST_APP_OPTION('r', OPT_REMOVE),
 });
 
-static char *tdesc = "Authentication Application";
 
 static char *app = "Authenticate";
 
@@ -254,7 +253,7 @@ int load_module(void)
 
 const char *description(void)
 {
-       return tdesc;
+       return "Authentication Application";
 }
 
 int usecount(void)
@@ -264,7 +263,7 @@ int usecount(void)
        return res;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }
index 138028ce6a899e39dc22c67c56de41d09ff575d6..847cfc114e47fad3c690ac3d303612ad0f1ad5dd 100644 (file)
@@ -48,8 +48,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/devicestate.h"
 #include "asterisk/options.h"
 
-static char *tdesc = "Check channel availability";
-
 static char *app = "ChanIsAvail";
 
 static char *synopsis = "Check channel availability";
@@ -175,7 +173,7 @@ int load_module(void)
 
 const char *description(void)
 {
-       return tdesc;
+       return "Check channel availability";
 }
 
 int usecount(void)
@@ -185,7 +183,7 @@ int usecount(void)
        return res;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }
index 2849768a59d953b6fe0866029d485b71c02805e1..f527b7d3851d3ef77d46a9141c65fb6333d920e7 100644 (file)
@@ -41,7 +41,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/app.h"
 #include "asterisk/features.h"
 
-static char *tdesc = "Channel Redirect";
 static char *app = "ChannelRedirect";
 static char *synopsis = "Redirects given channel to a dialplan target.";
 static char *descrip = 
@@ -139,7 +138,7 @@ int load_module(void)
 
 const char *description(void)
 {
-       return tdesc;
+       return "Channel Redirect";
 }
 
 int usecount(void)
@@ -151,7 +150,7 @@ int usecount(void)
        return res;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }
index 415d61b5676badc004c9a83769a2930563e5104d..5d70cc452eb4c3c4c2ac07c6aed9be621b815ec6 100644 (file)
@@ -44,8 +44,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/utils.h"
 #include "asterisk/options.h"
 
-static const char *tdesc = "Control Playback Application";
-
 static const char *app = "ControlPlayback";
 
 static const char *synopsis = "Play a file with fast forward and rewind";
@@ -174,7 +172,7 @@ int load_module(void)
 
 const char *description(void)
 {
-       return (char *) tdesc;
+       return "Control Playback Application";
 }
 
 int usecount(void)
@@ -185,7 +183,7 @@ int usecount(void)
        return res;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }
index 963eaaa776e2cb051391bf302f4049cb5fc98cce..38b7c6ade9193704b9077be03ef9ef88f72e8b00 100644 (file)
@@ -48,8 +48,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/lock.h"
 #include "asterisk/options.h"
 
-static char *tdesc = "Database Access Functions";
-
 static char *d_descrip =
 "  DBdel(family/key): This applicaiton will delete a key from the Asterisk\n"
 "database.\n";
@@ -169,7 +167,7 @@ int load_module(void)
 
 const char *description(void)
 {
-       return tdesc;
+       return "Database Access Functions";
 }
 
 int usecount(void)
@@ -179,7 +177,7 @@ int usecount(void)
        return res;
 }
 
-const char *key()
+const char *key(void)
 {
        return ASTERISK_GPL_KEY;
 }
index b77547d881d98b9b4e3be687c2551c63d800b95e..d4bd80f0a2d252734562a919020ec5112c60e48e 100644 (file)
@@ -61,8 +61,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/privacy.h"
 #include "asterisk/stringfields.h"
 
-static char *tdesc = "Dialing Application";
-
 static char *app = "Dial";
 
 static char *synopsis = "Place a call and connect to the current channel";
@@ -1730,7 +1728,8 @@ STATIC_MODULE int load_module(void)
 
 STATIC_MODULE const char *description(void)
 {
-       return tdesc;
+       return "Dialing Application";
+
 }
 
 STATIC_MODULE int usecount(void)