summaryrefslogtreecommitdiff
path: root/patlooptest.c
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-28 18:48:10 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-28 18:48:10 +0000
commit5ef09523bc09f3ad1ba4e51f72c89b1fa1bb25b5 (patch)
tree088906a3fd4b84a65ed20d5937f24fb95d13bb4c /patlooptest.c
parent9921db761b01a356fef6fa5c55d7ab3bf845976e (diff)
Revert the patlooptest changes
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2972 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'patlooptest.c')
-rw-r--r--patlooptest.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/patlooptest.c b/patlooptest.c
index b901d9d..80c8a43 100644
--- a/patlooptest.c
+++ b/patlooptest.c
@@ -3,8 +3,6 @@
#include <string.h>
#include <errno.h>
#include <stdio.h>
-#include <linux/types.h>
-#include <linux/ppp_defs.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <stdlib.h>
@@ -62,7 +60,6 @@ int main(int argc, char *argv[])
}
ioctl(fd, ZT_GETEVENT);
-restart:
i = ZT_FLUSH_ALL;
if (ioctl(fd,ZT_FLUSH,&i) == -1)
{
@@ -86,7 +83,7 @@ restart:
printf("Res is %d: %s\n", res, strerror(errno));
ioctl(fd, ZT_GETEVENT, &x);
printf("Event: %d\n", x);
- continue;
+ exit(1);
}
if (skipcount)
@@ -100,9 +97,7 @@ restart:
res = read(fd, inbuf, bs);
if (res < bs) {
printf("Res is %d\n", res);
- ioctl(fd, ZT_GETEVENT, &x);
- printf("Event: %d\n", x);
- continue;
+ exit(1);
}
if (!setup) {
c = inbuf[0];