[zaptel-commits] tzafrir: branch 1.4 r3904 - in /branches/1.4: hdlcstress.c hdlctest.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Thu Feb 28 10:12:09 CST 2008


Author: tzafrir
Date: Thu Feb 28 10:12:08 2008
New Revision: 3904

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3904
Log:
Remove some unused variables.

Modified:
    branches/1.4/hdlcstress.c
    branches/1.4/hdlctest.c

Modified: branches/1.4/hdlcstress.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/hdlcstress.c?view=diff&rev=3904&r1=3903&r2=3904
==============================================================================
--- branches/1.4/hdlcstress.c (original)
+++ branches/1.4/hdlcstress.c Thu Feb 28 10:12:08 2008
@@ -75,7 +75,6 @@
 {
 	int res;
 	int x;
-	int out;
 	unsigned char outbuf[BLOCK_SIZE];
 	int pos=0;
 	unsigned int fcs = PPP_INITFCS;
@@ -113,17 +112,12 @@
 
 int main(int argc, char *argv[])
 {
-	int fd2;
-	int ires, res, x;
-	int i;
+	int res, x;
 	ZT_PARAMS tp;
 	ZT_BUFFERINFO bi;
 	int bs = BLOCK_SIZE;
 	unsigned char c=0;
-	unsigned char inbuf[BLOCK_SIZE];
 	unsigned char outbuf[BLOCK_SIZE];
-	unsigned int fcs;
-	static int packets=0;
 	if (argc < 2) {
 		fprintf(stderr, "Usage: markhdlctest <tor device>\n");
 		exit(1);

Modified: branches/1.4/hdlctest.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/hdlctest.c?view=diff&rev=3904&r1=3903&r2=3904
==============================================================================
--- branches/1.4/hdlctest.c (original)
+++ branches/1.4/hdlctest.c Thu Feb 28 10:12:08 2008
@@ -130,17 +130,13 @@
 int main(int argc, char *argv[])
 {
 	int fd;
-	int fd2;
-	int ires, res, x;
-	int i;
+	int res, x;
 	ZT_PARAMS tp;
 	ZT_BUFFERINFO bi;
 	int bs = BLOCK_SIZE;
 	int pos = 0;
 	unsigned char inbuf[BLOCK_SIZE];
 	unsigned char outbuf[BLOCK_SIZE];
-	unsigned int fcs;
-	static int packets=0;
 	int bytes=0;
 	int out;
 	unsigned int olddata1;




More information about the zaptel-commits mailing list