[dahdi-commits] fjoe: freebsd/trunk r9116 - /freebsd/trunk/include/dahdi/compat/bsd.h
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Mon Aug 9 05:49:37 CDT 2010
Author: fjoe
Date: Mon Aug 9 05:49:34 2010
New Revision: 9116
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9116
Log:
Fix D_VERSION_LINEAR definition.
Modified:
freebsd/trunk/include/dahdi/compat/bsd.h
Modified: freebsd/trunk/include/dahdi/compat/bsd.h
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/include/dahdi/compat/bsd.h?view=diff&rev=9116&r1=9115&r2=9116
==============================================================================
--- freebsd/trunk/include/dahdi/compat/bsd.h (original)
+++ freebsd/trunk/include/dahdi/compat/bsd.h Mon Aug 9 05:49:34 2010
@@ -16,7 +16,7 @@
#include <machine/atomic.h>
#include <machine/bus.h>
-#define D_VERSION_LINEAR ((D_VERSION & 0xffff) | ((D_VERSION >> 16) & 0xff) | ((D_VERSION >> 24) & 0xff))
+#define D_VERSION_LINEAR (((D_VERSION & 0xffff) << 16) | (((D_VERSION >> 16) & 0xff) << 8) | ((D_VERSION >> 24) & 0xff))
#define LINUX_VERSION_CODE KERNEL_VERSION(2, 6, 32)
#define KERNEL_VERSION(x, y, z) (((x) << 16) + ((y) << 8) + (z))
More information about the dahdi-commits
mailing list