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:
parent
47ec64f9b0
commit
c7ae773800
@ -441,7 +441,7 @@ static struct dahdi_dynamic *find_dynamic(struct dahdi_dynamic_span *dds)
|
|||||||
return found;
|
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;
|
struct dahdi_dynamic_driver *dtd, *found = NULL;
|
||||||
|
|
||||||
|
@ -988,10 +988,10 @@ struct dahdi_transcoder {
|
|||||||
|
|
||||||
struct dahdi_dynamic_driver {
|
struct dahdi_dynamic_driver {
|
||||||
/*! Driver name (e.g. Eth) */
|
/*! Driver name (e.g. Eth) */
|
||||||
char name[20];
|
const char *name;
|
||||||
|
|
||||||
/*! Driver description */
|
/*! Driver description */
|
||||||
char desc[80];
|
const char *desc;
|
||||||
|
|
||||||
/*! Create a new transmission pipe */
|
/*! Create a new transmission pipe */
|
||||||
void *(*create)(struct dahdi_span *span, char *address);
|
void *(*create)(struct dahdi_span *span, char *address);
|
||||||
|
Loading…
Reference in New Issue
Block a user