summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-02-28 16:12:08 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-02-28 16:12:08 +0000
commit0361aa0ed06eb5fa4588ca336838954a98c36832 (patch)
tree5500065dc847c56eef1e40370e8088b2ddea3676
parentd22c1ef93ae1ebb52a2333b76eb052ede8fc5e8f (diff)
Remove some unused variables.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3904 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--hdlcstress.c8
-rw-r--r--hdlctest.c6
2 files changed, 2 insertions, 12 deletions
diff --git a/hdlcstress.c b/hdlcstress.c
index 6aa82ed..91af39d 100644
--- a/hdlcstress.c
+++ b/hdlcstress.c
@@ -75,7 +75,6 @@ void send_packet(unsigned char *buf, int len)
{
int res;
int x;
- int out;
unsigned char outbuf[BLOCK_SIZE];
int pos=0;
unsigned int fcs = PPP_INITFCS;
@@ -113,17 +112,12 @@ void send_packet(unsigned char *buf, int len)
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);
diff --git a/hdlctest.c b/hdlctest.c
index a95c9ef..4cd4d91 100644
--- a/hdlctest.c
+++ b/hdlctest.c
@@ -130,17 +130,13 @@ int check_frame(unsigned char *outbuf, int res)
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;