mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
Merged revisions 83432 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r83432 | russell | 2007-09-21 09:37:20 -0500 (Fri, 21 Sep 2007) | 4 lines gcc 4.2 has a new set of warnings dealing with cosnt pointers. This set of changes gets all of Asterisk (minus chan_alsa for now) to compile with gcc 4.2. (closes issue #10774, patch from qwell) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@83433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -61,8 +61,8 @@ void destroy_namelist(struct namelist *x)
|
||||
}
|
||||
}
|
||||
|
||||
struct namelist *create_name(char *name);
|
||||
struct namelist *create_name(char *name)
|
||||
struct namelist *create_name(const char *name);
|
||||
struct namelist *create_name(const char *name)
|
||||
{
|
||||
struct namelist *x = calloc(1, sizeof(*x));
|
||||
if (!x)
|
||||
@@ -333,12 +333,12 @@ int ast_add_extension2(struct ast_context *con,
|
||||
|
||||
void pbx_builtin_setvar(void *chan, void *data)
|
||||
{
|
||||
struct namelist *x = create_name((char*)data);
|
||||
struct namelist *x = create_name(data);
|
||||
if(!no_comp)
|
||||
printf("Executed pbx_builtin_setvar(chan, data=%s);\n", (char*)data);
|
||||
|
||||
if( dump_extensions ) {
|
||||
x = create_name((char*)data);
|
||||
x = create_name(data);
|
||||
ADD_LAST(globalvars,x);
|
||||
}
|
||||
}
|
||||
@@ -365,7 +365,7 @@ void ast_context_add_ignorepat2(struct ast_context *con, const char *value, cons
|
||||
printf("Executed ast_context_add_ignorepat2(con, value=%s, registrar=%s);\n", value, registrar);
|
||||
if( dump_extensions ) {
|
||||
struct namelist *x;
|
||||
x = create_name((char*)value);
|
||||
x = create_name(value);
|
||||
ADD_LAST(con->ignorepats,x);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user