summaryrefslogtreecommitdiff
path: root/patlooptest.c
diff options
context:
space:
mode:
Diffstat (limited to 'patlooptest.c')
-rwxr-xr-xpatlooptest.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/patlooptest.c b/patlooptest.c
index 2f3f2c7..fd1a054 100755
--- a/patlooptest.c
+++ b/patlooptest.c
@@ -2,7 +2,6 @@
#include <fcntl.h>
#include <string.h>
#include <errno.h>
-#include <linux/zaptel.h>
#include <stdio.h>
#include <linux/types.h>
#include <linux/ppp_defs.h>
@@ -11,6 +10,12 @@
#include <stdlib.h>
#include <time.h>
+#ifdef STANDALONE_ZAPATA
+#include "zaptel.h"
+#else
+#include <linux/zaptel.h>
+#endif
+
#define BLOCK_SIZE 2039
void print_packet(unsigned char *buf, int len)
@@ -25,8 +30,7 @@ void print_packet(unsigned char *buf, int len)
int main(int argc, char *argv[])
{
int fd;
- int fd2;
- int ires, res, x;
+ int res, x;
int i;
ZT_PARAMS tp;
int bs = BLOCK_SIZE;
@@ -34,8 +38,6 @@ int main(int argc, char *argv[])
unsigned char c=0,c1=0;
unsigned char inbuf[BLOCK_SIZE];
unsigned char outbuf[BLOCK_SIZE];
- unsigned int fcs;
- static int packets=0;
int setup=0;
int errors=0;
int bytes=0;