[zaptel-commits] qwell: branch 1.4 r2937 - in /branches/1.4: ./ zaptel-base.c
SVN commits to the Zaptel project
zaptel-commits at lists.digium.com
Wed Aug 22 16:02:16 CDT 2007
Author: qwell
Date: Wed Aug 22 16:02:15 2007
New Revision: 2937
URL: http://svn.digium.com/view/zaptel?view=rev&rev=2937
Log:
Merged revisions 2936 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.2
........
r2936 | qwell | 2007-08-22 16:01:14 -0500 (Wed, 22 Aug 2007) | 6 lines
Don't try to create devices 250 and above in udev.
Closes issue 10522, fix found by me (but I'm not going to take
credit for the code, since it already existed in trunk
for some reason)
........
Modified:
branches/1.4/ (props changed)
branches/1.4/zaptel-base.c
Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: branches/1.4/zaptel-base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/zaptel-base.c?view=diff&rev=2937&r1=2936&r2=2937
==============================================================================
--- branches/1.4/zaptel-base.c (original)
+++ branches/1.4/zaptel-base.c Wed Aug 22 16:02:15 2007
@@ -4724,8 +4724,10 @@
#ifdef CONFIG_ZAP_UDEV
for (x = 0; x < span->channels; x++) {
char chan_name[50];
- sprintf(chan_name, "zap%d", span->chans[x].channo);
- CLASS_DEV_CREATE(zap_class, MKDEV(ZT_MAJOR, span->chans[x].channo), NULL, chan_name);
+ if (span->chans[x].channo < 250) {
+ sprintf(chan_name, "zap%d", span->chans[x].channo);
+ CLASS_DEV_CREATE(zap_class, MKDEV(ZT_MAJOR, span->chans[x].channo), NULL, chan_name);
+ }
}
#endif /* CONFIG_ZAP_UDEV */
More information about the zaptel-commits
mailing list