aboutsummaryrefslogtreecommitdiffstats
path: root/callerid.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-06 01:22:47 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-06 01:22:47 +0000
commitd3391c2a91ccac5fc084e13f8e10675b58c446ba (patch)
tree6d5e22bd1b3a5313118ffb066b2c6d084ecf64ca /callerid.c
parent0179d71e0b80ccdc9a830279f32737d45f6bc15a (diff)
- use stringfields in a bunch of the fields of the zt_pvt structure in chan_zap
- constify some arguments to functions in callerid.c / callerid.h git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32456 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'callerid.c')
-rw-r--r--callerid.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/callerid.c b/callerid.c
index b88392691..195ae1f8f 100644
--- a/callerid.c
+++ b/callerid.c
@@ -696,7 +696,7 @@ void callerid_free(struct callerid_state *cid)
free(cid);
}
-static int callerid_genmsg(char *msg, int size, char *number, char *name, int flags)
+static int callerid_genmsg(char *msg, int size, const char *number, const char *name, int flags)
{
time_t t;
struct tm tm;
@@ -827,7 +827,7 @@ int vmwi_generate(unsigned char *buf, int active, int mdmf, int codec)
return bytes;
}
-int callerid_generate(unsigned char *buf, char *number, char *name, int flags, int callwaiting, int codec)
+int callerid_generate(unsigned char *buf, const char *number, const char *name, int flags, int callwaiting, int codec)
{
int bytes=0;
int x, sum;
@@ -989,7 +989,7 @@ int ast_callerid_parse(char *instr, char **name, char **location)
return 0;
}
-static int __ast_callerid_generate(unsigned char *buf, char *name, char *number, int callwaiting, int codec)
+static int __ast_callerid_generate(unsigned char *buf, const char *name, const char *number, int callwaiting, int codec)
{
if (ast_strlen_zero(name))
name = NULL;
@@ -998,12 +998,12 @@ static int __ast_callerid_generate(unsigned char *buf, char *name, char *number,
return callerid_generate(buf, number, name, 0, callwaiting, codec);
}
-int ast_callerid_generate(unsigned char *buf, char *name, char *number, int codec)
+int ast_callerid_generate(unsigned char *buf, const char *name, const char *number, int codec)
{
return __ast_callerid_generate(buf, name, number, 0, codec);
}
-int ast_callerid_callwaiting_generate(unsigned char *buf, char *name, char *number, int codec)
+int ast_callerid_callwaiting_generate(unsigned char *buf, const char *name, const char *number, int codec)
{
return __ast_callerid_generate(buf, name, number, 1, codec);
}