diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-08 22:01:19 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-08 22:01:19 +0000 |
commit | e4880150b1746ede7bd3c9e0f8fb88901a8c562b (patch) | |
tree | b11d36d1b949f3ff1bc79f71f06c04c8f6c72f71 /res | |
parent | f1822bc2a6fdfea0a2fa629a0dc70336f22af185 (diff) |
since the module API is changing, it's a good time to const-ify the description() and key() return values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18552 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_adsi.c | 4 | ||||
-rw-r--r-- | res/res_agi.c | 4 | ||||
-rw-r--r-- | res/res_clioriginate.c | 4 | ||||
-rw-r--r-- | res/res_convert.c | 4 | ||||
-rw-r--r-- | res/res_crypto.c | 4 | ||||
-rw-r--r-- | res/res_features.c | 4 | ||||
-rw-r--r-- | res/res_indications.c | 4 | ||||
-rw-r--r-- | res/res_monitor.c | 4 | ||||
-rw-r--r-- | res/res_musiconhold.c | 4 | ||||
-rw-r--r-- | res/res_odbc.c | 4 | ||||
-rw-r--r-- | res/res_osp.c | 4 | ||||
-rw-r--r-- | res/res_smdi.c | 4 | ||||
-rw-r--r-- | res/res_snmp.c | 4 |
13 files changed, 26 insertions, 26 deletions
diff --git a/res/res_adsi.c b/res/res_adsi.c index b6d2b97db..258ac3dfb 100644 --- a/res/res_adsi.c +++ b/res/res_adsi.c @@ -1125,7 +1125,7 @@ int unload_module(void) return -1; } -char *description(void) +const const char *description(void) { return "ADSI Resource"; } @@ -1136,7 +1136,7 @@ int usecount(void) return 1; } -char *key() +const const char *key() { return ASTERISK_GPL_KEY; } diff --git a/res/res_agi.c b/res/res_agi.c index e66043fa0..5c9e0572e 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -2051,7 +2051,7 @@ int load_module(void) return ast_register_application(app, agi_exec, synopsis, descrip); } -char *description(void) +const const char *description(void) { return tdesc; } @@ -2063,7 +2063,7 @@ int usecount(void) return res; } -char *key() +const const char *key() { return ASTERISK_GPL_KEY; } diff --git a/res/res_clioriginate.c b/res/res_clioriginate.c index e1ebaedfe..aff7ed0b1 100644 --- a/res/res_clioriginate.c +++ b/res/res_clioriginate.c @@ -175,7 +175,7 @@ int load_module(void) return ast_cli_register(&cli_orig); } -char *description(void) +const const char *description(void) { return tdesc; } @@ -185,7 +185,7 @@ int usecount(void) return 0; } -char *key() +const const char *key() { return ASTERISK_GPL_KEY; } diff --git a/res/res_convert.c b/res/res_convert.c index 2451dd8c1..9a1fac676 100644 --- a/res/res_convert.c +++ b/res/res_convert.c @@ -144,7 +144,7 @@ int load_module(void) return ast_cli_register(&audio_convert_cli); } -char *description(void) +const const char *description(void) { return desc; } @@ -158,7 +158,7 @@ int usecount(void) return res; } -char *key() +const const char *key() { return ASTERISK_GPL_KEY; } diff --git a/res/res_crypto.c b/res/res_crypto.c index aaf6cf809..5c5d5c7c4 100644 --- a/res/res_crypto.c +++ b/res/res_crypto.c @@ -603,7 +603,7 @@ int unload_module(void) return -1; } -char *description(void) +const const char *description(void) { return "Cryptographic Digital Signatures"; } @@ -614,7 +614,7 @@ int usecount(void) return 1; } -char *key() +const const char *key() { return ASTERISK_GPL_KEY; } diff --git a/res/res_features.c b/res/res_features.c index ebd225f8a..b3013d563 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -2242,7 +2242,7 @@ int unload_module(void) return ast_unregister_application(parkedcall); } -char *description(void) +const const char *description(void) { return "Call Features Resource"; } @@ -2260,7 +2260,7 @@ int usecount(void) #endif } -char *key() +const const char *key() { return ASTERISK_GPL_KEY; } diff --git a/res/res_indications.c b/res/res_indications.c index cb3a766ec..38657535b 100644 --- a/res/res_indications.c +++ b/res/res_indications.c @@ -400,7 +400,7 @@ int reload(void) return ind_load_module(); } -char *description(void) +const const char *description(void) { /* that the following cast is needed, is yuk! */ return (char*)dtext; @@ -411,7 +411,7 @@ int usecount(void) return 0; } -char *key() +const const char *key() { return ASTERISK_GPL_KEY; } diff --git a/res/res_monitor.c b/res/res_monitor.c index ae6099b3e..6c00c593c 100644 --- a/res/res_monitor.c +++ b/res/res_monitor.c @@ -679,7 +679,7 @@ STATIC_MODULE int unload_module(void) return 0; } -STATIC_MODULE char *description(void) +STATIC_MODULE const char *description(void) { return "Call Monitoring Resource"; } @@ -697,7 +697,7 @@ STATIC_MODULE int usecount(void) #endif } -STATIC_MODULE char *key(void) +STATIC_MODULE const char *key(void) { return ASTERISK_GPL_KEY; } diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 314c0762a..e82d6fa19 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -1204,7 +1204,7 @@ int unload_module(void) return -1; } -char *description(void) +const char *description(void) { return "Music On Hold Resource"; } @@ -1222,7 +1222,7 @@ int usecount(void) #endif } -char *key() +const char *key() { return ASTERISK_GPL_KEY; } diff --git a/res/res_odbc.c b/res/res_odbc.c index c6c2fcffb..3093c1f07 100644 --- a/res/res_odbc.c +++ b/res/res_odbc.c @@ -600,7 +600,7 @@ int load_module(void) return 0; } -char *description(void) +const char *description(void) { return tdesc; } @@ -612,7 +612,7 @@ int usecount(void) return res; } -char *key() +const char *key() { return ASTERISK_GPL_KEY; } diff --git a/res/res_osp.c b/res/res_osp.c index 43cb403f1..ad8f590e4 100644 --- a/res/res_osp.c +++ b/res/res_osp.c @@ -1086,7 +1086,7 @@ int unload_module(void) return(0); } -char *description(void) +const char *description(void) { return("Open Settlement Protocol Support"); } @@ -1096,7 +1096,7 @@ int usecount(void) return(osp_usecount); } -char *key() +const char *key() { return(ASTERISK_GPL_KEY); } diff --git a/res/res_smdi.c b/res/res_smdi.c index 9de914b94..681fd7f41 100644 --- a/res/res_smdi.c +++ b/res/res_smdi.c @@ -709,7 +709,7 @@ static int smdi_load(int reload) } -char *description(void) +const char *description(void) { return (char *) tdesc; } @@ -766,7 +766,7 @@ int usecount(void) return res; } -char *key() +const char *key() { return ASTERISK_GPL_KEY; } diff --git a/res/res_snmp.c b/res/res_snmp.c index 871a74da6..a399b8b8c 100644 --- a/res/res_snmp.c +++ b/res/res_snmp.c @@ -128,12 +128,12 @@ int usecount(void) return 0; } -char *key(void) +const char *key(void) { return ASTERISK_GPL_KEY; } -char *description(void) +const char *description(void) { return MODULE_DESCRIPTION; } |