[dahdi-commits] sruffell: linux/trunk r9569 - in /linux/trunk: drivers/dahdi/ include/dahdi/
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Mon Jan 3 18:25:17 UTC 2011
Author: sruffell
Date: Mon Jan 3 12:25:13 2011
New Revision: 9569
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9569
Log:
dahdi_dynamic: Use const pointers for dahdi_dynamic_driver strings.
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Kinsey Moore <kmoore at digium.com>
Modified:
linux/trunk/drivers/dahdi/dahdi_dynamic.c
linux/trunk/include/dahdi/kernel.h
Modified: linux/trunk/drivers/dahdi/dahdi_dynamic.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi_dynamic.c?view=diff&rev=9569&r1=9568&r2=9569
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi_dynamic.c (original)
+++ linux/trunk/drivers/dahdi/dahdi_dynamic.c Mon Jan 3 12:25:13 2011
@@ -441,7 +441,7 @@
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;
Modified: linux/trunk/include/dahdi/kernel.h
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/include/dahdi/kernel.h?view=diff&rev=9569&r1=9568&r2=9569
==============================================================================
--- linux/trunk/include/dahdi/kernel.h (original)
+++ linux/trunk/include/dahdi/kernel.h Mon Jan 3 12:25:13 2011
@@ -988,10 +988,10 @@
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);
More information about the dahdi-commits
mailing list