dahdi_dynamic: Use const pointers for dahdi_dynamic_driver strings.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9569 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
Shaun Ruffell 2011-01-03 18:25:13 +00:00
parent 47ec64f9b0
commit c7ae773800
2 changed files with 3 additions and 3 deletions

View File

@ -441,7 +441,7 @@ static struct dahdi_dynamic *find_dynamic(struct dahdi_dynamic_span *dds)
return found;
}
static struct dahdi_dynamic_driver *find_driver(char *name)
static struct dahdi_dynamic_driver *find_driver(const char *name)
{
struct dahdi_dynamic_driver *dtd, *found = NULL;

View File

@ -988,10 +988,10 @@ struct dahdi_transcoder {
struct dahdi_dynamic_driver {
/*! Driver name (e.g. Eth) */
char name[20];
const char *name;
/*! Driver description */
char desc[80];
const char *desc;
/*! Create a new transmission pipe */
void *(*create)(struct dahdi_span *span, char *address);