From 5ef09523bc09f3ad1ba4e51f72c89b1fa1bb25b5 Mon Sep 17 00:00:00 2001 From: mattf Date: Tue, 28 Aug 2007 18:48:10 +0000 Subject: Revert the patlooptest changes git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2972 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- patlooptest.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'patlooptest.c') diff --git a/patlooptest.c b/patlooptest.c index b901d9d..80c8a43 100644 --- a/patlooptest.c +++ b/patlooptest.c @@ -3,8 +3,6 @@ #include #include #include -#include -#include #include #include #include @@ -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]; -- cgit v1.2.3