[zaptel-commits] qwell: branch 1.4 r3964 - /branches/1.4/kernel/zaptel-base.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Fri Mar 7 10:18:14 CST 2008


Author: qwell
Date: Fri Mar  7 10:18:13 2008
New Revision: 3964

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3964
Log:
Fix compilation when using devfs

(closes issue #12156)
Reported by: zandbelt
Patches:
      zaptel-1.4.9.2-devfs-mode.patch uploaded by zandbelt (license 33)

Modified:
    branches/1.4/kernel/zaptel-base.c

Modified: branches/1.4/kernel/zaptel-base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/zaptel-base.c?view=diff&rev=3964&r1=3963&r2=3964
==============================================================================
--- branches/1.4/kernel/zaptel-base.c (original)
+++ branches/1.4/kernel/zaptel-base.c Fri Mar  7 10:18:13 2008
@@ -7351,6 +7351,10 @@
 
 int zt_register_chardev(struct zt_chardev *dev)
 {
+#ifdef CONFIG_DEVFS_FS
+	umode_t mode = S_IFCHR|S_IRUGO|S_IWUGO;
+#endif /* CONFIG_DEVFS_FS */
+
 #ifdef CONFIG_ZAP_UDEV
 	char udevname[strlen(dev->name) + 3];
 




More information about the zaptel-commits mailing list