[asterisk-commits] russell: trunk r253536 - /trunk/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Mar 20 06:33:35 CDT 2010


Author: russell
Date: Sat Mar 20 06:33:30 2010
New Revision: 253536

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=253536
Log:
Use SHRT_MAX instead of MAXSHORT.

These changes fix build issues I had with this module on FreeBSD.

Modified:
    trunk/channels/chan_dahdi.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=253536&r1=253535&r2=253536
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Sat Mar 20 06:33:30 2010
@@ -50,8 +50,7 @@
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
-#include <values.h>
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__FreeBSD__)
 #include <pthread.h>
 #include <signal.h>
 #else
@@ -4203,7 +4202,7 @@
 {
 	float neg;
 	float shallow, steep;
-	float max = MAXSHORT;
+	float max = SHRT_MAX;
 	
 	neg = (sample < 0 ? -1 : 1);
 	steep = drc*sample;




More information about the asterisk-commits mailing list