summaryrefslogtreecommitdiff
path: root/patgen.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2002-09-24 19:52:31 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2002-09-24 19:52:31 +0000
commit992cd7bbd4e06be143921ce0293e0ac12acd431a (patch)
tree402fe34d42e96c662ae00e423212c4cc3cfa4f6d /patgen.c
parentcf8509d0cdc292704a9cd9a2673f420672333022 (diff)
Version 0.3.1 from FTP
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@108 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'patgen.c')
-rwxr-xr-xpatgen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/patgen.c b/patgen.c
index bc600bf..5c360dc 100755
--- a/patgen.c
+++ b/patgen.c
@@ -9,6 +9,7 @@
#include <sys/ioctl.h>
#include <unistd.h>
#include <stdlib.h>
+#include "bittest.h"
/* #define BLOCK_SIZE 2048 */
#define BLOCK_SIZE 2041
@@ -60,8 +61,10 @@ int main(int argc, char *argv[])
#endif
for(;;) {
res = bs;
- for (x=0;x<bs;x++)
- outbuf[x] = c++;
+ for (x=0;x<bs;x++) {
+ outbuf[x] = c;
+ c = bit_next(c);
+ }
res = write(fd, outbuf, res);
#if 0
printf("(%d) Wrote %d bytes\n", packets++, res);