diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-03-21 01:20:26 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-03-21 01:20:26 +0000 |
commit | 93723810d170ec563ba764739439040b41c8d798 (patch) | |
tree | c9984ba70cb9e6405417aba579b96e8915787a89 /hdlctest.c | |
parent | a7d759ab76434bb18219cdd8d99c669937323b5f (diff) |
* Get hdlcstress and hdlctest to build.
* Make sure everything's initialized in hdlctest.c .
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4038 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'hdlctest.c')
-rw-r--r-- | hdlctest.c | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -2,8 +2,9 @@ #include <fcntl.h> #include <string.h> #include <errno.h> -#include <linux/zaptel.h> +#include "zaptel.h" #include <stdio.h> +#include <linux/types.h> #include <linux/ppp_defs.h> #include <sys/ioctl.h> #include <unistd.h> @@ -129,25 +130,21 @@ 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; int oldones1; int oldbits1; - unsigned int olddata; - int oldones; - int oldbits; + unsigned int olddata = 0; + int oldones = 0; + int oldbits = 0; int hdlcmode = 0; struct fasthdlc_state fs; if (argc < 2) { |