[dahdi-commits] fjoe: freebsd/trunk r8740 - /freebsd/trunk/drivers/dahdi/
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Tue Jun 1 12:54:54 CDT 2010
Author: fjoe
Date: Tue Jun 1 12:54:52 2010
New Revision: 8740
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8740
Log:
FreeBSD error return values are positive.
Modified:
freebsd/trunk/drivers/dahdi/dahdi_echocan_jpah.c
freebsd/trunk/drivers/dahdi/dahdi_echocan_kb1.c
freebsd/trunk/drivers/dahdi/dahdi_echocan_mg2.c
freebsd/trunk/drivers/dahdi/dahdi_echocan_sec.c
freebsd/trunk/drivers/dahdi/dahdi_echocan_sec2.c
Modified: freebsd/trunk/drivers/dahdi/dahdi_echocan_jpah.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/dahdi_echocan_jpah.c?view=diff&rev=8740&r1=8739&r2=8740
==============================================================================
--- freebsd/trunk/drivers/dahdi/dahdi_echocan_jpah.c (original)
+++ freebsd/trunk/drivers/dahdi/dahdi_echocan_jpah.c Tue Jun 1 12:54:52 2010
@@ -158,14 +158,17 @@
static int
echocan_jpah_modevent(module_t mod __unused, int type, void *data __unused)
{
+ int res;
+
switch (type) {
case MOD_LOAD:
- return mod_init();
+ res = mod_init();
+ return (-res);
case MOD_UNLOAD:
mod_exit();
- return 0;
+ return (0);
default:
- return EOPNOTSUPP;
+ return (EOPNOTSUPP);
}
}
Modified: freebsd/trunk/drivers/dahdi/dahdi_echocan_kb1.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/dahdi_echocan_kb1.c?view=diff&rev=8740&r1=8739&r2=8740
==============================================================================
--- freebsd/trunk/drivers/dahdi/dahdi_echocan_kb1.c (original)
+++ freebsd/trunk/drivers/dahdi/dahdi_echocan_kb1.c Tue Jun 1 12:54:52 2010
@@ -758,14 +758,17 @@
static int
echocan_kb1_modevent(module_t mod __unused, int type, void *data __unused)
{
+ int res;
+
switch (type) {
case MOD_LOAD:
- return mod_init();
+ res = mod_init();
+ return (-res);
case MOD_UNLOAD:
mod_exit();
- return 0;
+ return (0);
default:
- return EOPNOTSUPP;
+ return (EOPNOTSUPP);
}
}
Modified: freebsd/trunk/drivers/dahdi/dahdi_echocan_mg2.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/dahdi_echocan_mg2.c?view=diff&rev=8740&r1=8739&r2=8740
==============================================================================
--- freebsd/trunk/drivers/dahdi/dahdi_echocan_mg2.c (original)
+++ freebsd/trunk/drivers/dahdi/dahdi_echocan_mg2.c Tue Jun 1 12:54:52 2010
@@ -905,14 +905,17 @@
static int
echocan_mg2_modevent(module_t mod __unused, int type, void *data __unused)
{
+ int res;
+
switch (type) {
case MOD_LOAD:
- return mod_init();
+ res = mod_init();
+ return (-res);
case MOD_UNLOAD:
mod_exit();
- return 0;
+ return (0);
default:
- return EOPNOTSUPP;
+ return (EOPNOTSUPP);
}
}
Modified: freebsd/trunk/drivers/dahdi/dahdi_echocan_sec.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/dahdi_echocan_sec.c?view=diff&rev=8740&r1=8739&r2=8740
==============================================================================
--- freebsd/trunk/drivers/dahdi/dahdi_echocan_sec.c (original)
+++ freebsd/trunk/drivers/dahdi/dahdi_echocan_sec.c Tue Jun 1 12:54:52 2010
@@ -370,14 +370,17 @@
static int
echocan_sec_modevent(module_t mod __unused, int type, void *data __unused)
{
+ int res;
+
switch (type) {
case MOD_LOAD:
- return mod_init();
+ res = mod_init();
+ return (-res);
case MOD_UNLOAD:
mod_exit();
- return 0;
+ return (0);
default:
- return EOPNOTSUPP;
+ return (EOPNOTSUPP);
}
}
Modified: freebsd/trunk/drivers/dahdi/dahdi_echocan_sec2.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/dahdi_echocan_sec2.c?view=diff&rev=8740&r1=8739&r2=8740
==============================================================================
--- freebsd/trunk/drivers/dahdi/dahdi_echocan_sec2.c (original)
+++ freebsd/trunk/drivers/dahdi/dahdi_echocan_sec2.c Tue Jun 1 12:54:52 2010
@@ -365,14 +365,17 @@
static int
echocan_sec2_modevent(module_t mod __unused, int type, void *data __unused)
{
+ int res;
+
switch (type) {
case MOD_LOAD:
- return mod_init();
+ res = mod_init();
+ return (-res);
case MOD_UNLOAD:
mod_exit();
- return 0;
+ return (0);
default:
- return EOPNOTSUPP;
+ return (EOPNOTSUPP);
}
}
More information about the dahdi-commits
mailing list