aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-08 22:01:19 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-08 22:01:19 +0000
commite4880150b1746ede7bd3c9e0f8fb88901a8c562b (patch)
treeb11d36d1b949f3ff1bc79f71f06c04c8f6c72f71 /pbx
parentf1822bc2a6fdfea0a2fa629a0dc70336f22af185 (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 'pbx')
-rw-r--r--pbx/pbx_ael.c4
-rw-r--r--pbx/pbx_config.c4
-rw-r--r--pbx/pbx_dundi.c4
-rw-r--r--pbx/pbx_gtkconsole.c4
-rw-r--r--pbx/pbx_loopback.c4
-rw-r--r--pbx/pbx_realtime.c4
-rw-r--r--pbx/pbx_spool.c4
7 files changed, 14 insertions, 14 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c
index 0ab588679..d6617d5b8 100644
--- a/pbx/pbx_ael.c
+++ b/pbx/pbx_ael.c
@@ -1273,12 +1273,12 @@ int usecount(void)
return 0;
}
-char *description(void)
+const char *description(void)
{
return dtext;
}
-char *key(void)
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index 255cedca2..db5dcce48 100644
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -1547,12 +1547,12 @@ STATIC_MODULE int usecount(void)
return 0;
}
-STATIC_MODULE char *description(void)
+STATIC_MODULE const char *description(void)
{
return dtext;
}
-STATIC_MODULE char *key(void)
+STATIC_MODULE const char *key(void)
{
return ASTERISK_GPL_KEY;
}
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c
index 4397d4358..9e30b8654 100644
--- a/pbx/pbx_dundi.c
+++ b/pbx/pbx_dundi.c
@@ -4709,7 +4709,7 @@ int load_module(void)
return res;
}
-char *description(void)
+const char *description(void)
{
return tdesc;
}
@@ -4723,7 +4723,7 @@ int usecount(void)
return res;
}
-char *key()
+const char *key()
{
return ASTERISK_GPL_KEY;
}
diff --git a/pbx/pbx_gtkconsole.c b/pbx/pbx_gtkconsole.c
index f0d118b89..4547c94c3 100644
--- a/pbx/pbx_gtkconsole.c
+++ b/pbx/pbx_gtkconsole.c
@@ -507,12 +507,12 @@ int usecount(void)
return inuse;
}
-char *description(void)
+const char *description(void)
{
return dtext;
}
-char *key(void)
+const char *key(void)
{
return ASTERISK_GPL_KEY;
}
diff --git a/pbx/pbx_loopback.c b/pbx/pbx_loopback.c
index 5f590cf8a..cadd73a14 100644
--- a/pbx/pbx_loopback.c
+++ b/pbx/pbx_loopback.c
@@ -169,7 +169,7 @@ static struct ast_switch loopback_switch =
matchmore: loopback_matchmore,
};
-char *description(void)
+const char *description(void)
{
return tdesc;
}
@@ -179,7 +179,7 @@ int usecount(void)
return 1;
}
-char *key()
+const char *key()
{
return ASTERISK_GPL_KEY;
}
diff --git a/pbx/pbx_realtime.c b/pbx/pbx_realtime.c
index 0ec8c538d..04d6fd0bd 100644
--- a/pbx/pbx_realtime.c
+++ b/pbx/pbx_realtime.c
@@ -246,7 +246,7 @@ static struct ast_switch realtime_switch =
matchmore: realtime_matchmore,
};
-char *description(void)
+const char *description(void)
{
return tdesc;
}
@@ -256,7 +256,7 @@ int usecount(void)
return 1;
}
-char *key()
+const char *key()
{
return ASTERISK_GPL_KEY;
}
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c
index a03085ed6..122b2e5aa 100644
--- a/pbx/pbx_spool.c
+++ b/pbx/pbx_spool.c
@@ -428,7 +428,7 @@ int load_module(void)
return 0;
}
-char *description(void)
+const char *description(void)
{
return tdesc;
}
@@ -438,7 +438,7 @@ int usecount(void)
return 1;
}
-char *key()
+const char *key()
{
return ASTERISK_GPL_KEY;
}