From d3391c2a91ccac5fc084e13f8e10675b58c446ba Mon Sep 17 00:00:00 2001 From: russell Date: Tue, 6 Jun 2006 01:22:47 +0000 Subject: - 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 --- callerid.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'callerid.c') 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); } -- cgit v1.2.3