[asterisk-commits] pabelanger: branch 1.8 r355839 - /branches/1.8/res/res_pktccops.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 17 21:59:29 CST 2012


Author: pabelanger
Date: Fri Feb 17 21:59:26 2012
New Revision: 355839

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=355839
Log:
Fix -Werror=unused-but-set-variable compiler error (gcc 4.6.2)

Modified:
    branches/1.8/res/res_pktccops.c

Modified: branches/1.8/res/res_pktccops.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_pktccops.c?view=diff&rev=355839&r1=355838&r2=355839
==============================================================================
--- branches/1.8/res/res_pktccops.c (original)
+++ branches/1.8/res/res_pktccops.c Fri Feb 17 21:59:26 2012
@@ -1029,7 +1029,7 @@
 	struct cops_cmts *cmts;
 	struct cops_ippool *new_ippool;
 	const char *host, *cat, *port;
-	int sfd, update;
+	int update;
 	int res = 0;
 	uint16_t t1_temp, t7_temp, t8_temp;
 	uint32_t keepalive_temp;
@@ -1063,7 +1063,6 @@
 			/* Defaults */
 			host = NULL;
 			port = NULL;
-			sfd = 0;
 			t1_temp = t1;
 			t7_temp = t7;
 			t8_temp = t8;
@@ -1333,7 +1332,6 @@
 	unsigned int an,bn,cn,dn;
 	uint32_t mta, ssip;
 	struct cops_cmts *cmts;
-	struct cops_gate *gate;
 
 	switch (cmd) {
 	case CLI_INIT:
@@ -1380,7 +1378,7 @@
 	}
 	ssip = an << 24 | bn << 16 | cn << 8 | dn;
 
-	gate = cops_gate_cmd(GATE_SET, cmts, trid, mta, atoi(a->argv[4]), atof(a->argv[5]), atoi(a->argv[6]), ssip, atoi(a->argv[8]), NULL);
+	cops_gate_cmd(GATE_SET, cmts, trid, mta, atoi(a->argv[4]), atof(a->argv[5]), atoi(a->argv[6]), ssip, atoi(a->argv[8]), NULL);
 	return CLI_SUCCESS;
 }
 




More information about the asterisk-commits mailing list