[asterisk-commits] russell: branch group/asterisk-cpp r168559 - /team/group/asterisk-cpp/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jan 13 12:58:50 CST 2009
Author: russell
Date: Tue Jan 13 12:58:50 2009
New Revision: 168559
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168559
Log:
fix a few linker errors
Modified:
team/group/asterisk-cpp/main/taskprocessor.c
Modified: team/group/asterisk-cpp/main/taskprocessor.c
URL: http://svn.digium.com/svn-view/asterisk/team/group/asterisk-cpp/main/taskprocessor.c?view=diff&rev=168559&r1=168558&r2=168559
==============================================================================
--- team/group/asterisk-cpp/main/taskprocessor.c (original)
+++ team/group/asterisk-cpp/main/taskprocessor.c Tue Jan 13 12:58:50 2009
@@ -62,7 +62,7 @@
/*! \brief A ast_taskprocessor structure is a singleton by name */
struct ast_taskprocessor {
/*! \brief Friendly name of the taskprocessor */
- char *name;
+ const char *name;
/*! \brief Thread poll condition */
ast_cond_t poll_cond;
/*! \brief Taskprocessor thread */
@@ -368,7 +368,7 @@
ast_free(t->stats);
t->stats = NULL;
}
- ast_free(t->name);
+ ast_free((char *) t->name);
}
/* pop the front task and return it */
@@ -406,7 +406,7 @@
/* Provide a reference to a taskprocessor. Create the taskprocessor if necessary, but don't
* create the taskprocessor if we were told via ast_tps_options to return a reference only
* if it already exists */
-struct ast_taskprocessor *ast_taskprocessor_get(char *name, enum ast_tps_options create)
+struct ast_taskprocessor *ast_taskprocessor_get(const char *name, enum ast_tps_options create)
{
struct ast_taskprocessor *p, tmp_tps = {
name
More information about the asterisk-commits
mailing list