[asterisk-commits] mattf: trunk r47478 - /trunk/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 10 15:06:12 MST 2006


Author: mattf
Date: Fri Nov 10 16:06:11 2006
New Revision: 47478

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47478
Log:
Make sure we don't use 32bits for a value that only requires 1 bit.  Also, fix a compiler warning for one of the SS7 functions.

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=47478&r1=47477&r2=47478
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Fri Nov 10 16:06:11 2006
@@ -614,8 +614,8 @@
 	unsigned int firstradio:1;
 	unsigned int hanguponpolarityswitch:1;
 	unsigned int hardwaredtmf:1;
-	unsigned int hidecallerid;
-	unsigned int hidecalleridname;      /*!< Hide just the name not the number for legacy PBX use */
+	unsigned int hidecallerid:1;
+	unsigned int hidecalleridname:1;      /*!< Hide just the name not the number for legacy PBX use */
 	unsigned int ignoredtmf:1;
 	unsigned int immediate:1;			/*!< Answer before getting digits? */
 	unsigned int inalarm:1;
@@ -8349,7 +8349,7 @@
 	int i, startcic = -1, endcic;
 
 	if (linkset->numchans <= 0)
-		return 0;
+		return;
 
 	startcic = linkset->pvts[0]->cic;
 



More information about the asterisk-commits mailing list