diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-31 18:41:58 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-31 18:41:58 +0000 |
commit | 3e13702d65b9c53a5b9c35abc670cef3fa1ee6ee (patch) | |
tree | dc98bad7f6c9235177cd0038b8920ce4d57ce19a /res | |
parent | c096054af4eff333cac67ebdac538fdc4dc49a34 (diff) |
Change a couple of header files to not use "new", which is a reserved keyword
in C++. (issue #9830, reported by osk)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66775 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_speech.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_speech.c b/res/res_speech.c index 419c6086e..16673538b 100644 --- a/res/res_speech.c +++ b/res/res_speech.c @@ -237,7 +237,7 @@ struct ast_speech *ast_speech_new(char *engine_name, int format) ast_speech_change_state(new_speech, AST_SPEECH_STATE_NOT_READY); /* Pass ourselves to the engine so they can set us up some more and if they error out then do not create a structure */ - if (engine->new(new_speech)) { + if (engine->create(new_speech)) { ast_mutex_destroy(&new_speech->lock); free(new_speech); new_speech = NULL; |