[asterisk-commits] qwell: trunk r394216 - /trunk/channels/chan_skinny.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 12 14:35:10 CDT 2013


Author: qwell
Date: Fri Jul 12 14:35:08 2013
New Revision: 394216

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=394216
Log:
Fix a compiler warning.

Modified:
    trunk/channels/chan_skinny.c

Modified: trunk/channels/chan_skinny.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=394216&r1=394215&r2=394216
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Fri Jul 12 14:35:08 2013
@@ -3298,12 +3298,16 @@
 static void transmit_keepaliveack(struct skinnysession *s)
 {
 	struct skinny_req *req;
-	struct skinny_device *d = s->device;
 
 	if (!(req = req_alloc(0, KEEP_ALIVE_ACK_MESSAGE)))
 		return;
 
+#ifdef AST_DEVMODE
+	{
+	struct skinny_device *d = s->device;
 	SKINNY_DEBUG(DEBUG_PACKET, 3, "Transmitting KEEP_ALIVE_ACK_MESSAGE to %s\n", (d ? d->name : "unregistered"));
+	}
+#endif
 	transmit_response_bysession(s, req);
 }
 




More information about the asterisk-commits mailing list