From a45f2b1de28843e9f690da155d3b04cdee79c852 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 16 Nov 2008 17:46:18 +0000 Subject: Fix usage strings and eliminate all traces of tor git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5308 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- hdlcstress.c | 2 +- hdlctest.c | 2 +- patgen.c | 2 +- patlooptest.c | 2 +- pattest.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hdlcstress.c b/hdlcstress.c index 9bb9556..ee4c35a 100644 --- a/hdlcstress.c +++ b/hdlcstress.c @@ -137,7 +137,7 @@ int main(int argc, char *argv[]) unsigned char c=0; unsigned char outbuf[BLOCK_SIZE]; if (argc < 2) { - fprintf(stderr, "Usage: markhdlctest \n"); + fprintf(stderr, "Usage: %s \n", argv[0]); exit(1); } fd = open(argv[1], O_RDWR, 0600); diff --git a/hdlctest.c b/hdlctest.c index e693ae7..d9c6ada 100644 --- a/hdlctest.c +++ b/hdlctest.c @@ -165,7 +165,7 @@ int main(int argc, char *argv[]) int hdlcmode = 0; struct fasthdlc_state fs; if (argc < 2) { - fprintf(stderr, "Usage: markhdlctest \n"); + fprintf(stderr, "Usage: %s \n", argv[0]); exit(1); } fd = open(argv[1], O_RDWR, 0600); diff --git a/patgen.c b/patgen.c index bf3e43e..a4485c4 100644 --- a/patgen.c +++ b/patgen.c @@ -47,7 +47,7 @@ int main(int argc, char *argv[]) unsigned char c=0; unsigned char outbuf[BLOCK_SIZE]; if (argc < 2) { - fprintf(stderr, "Usage: %s \n", argv[0]); + fprintf(stderr, "Usage: %s \n", argv[0]); exit(1); } fd = open(argv[1], O_RDWR, 0600); diff --git a/patlooptest.c b/patlooptest.c index cdbe285..fc97c83 100644 --- a/patlooptest.c +++ b/patlooptest.c @@ -73,7 +73,7 @@ int main(int argc, char *argv[]) i = DAHDI_FLUSH_ALL; if (ioctl(fd,DAHDI_FLUSH,&i) == -1) { - perror("tor_flush"); + perror("DAHDI_FLUSH"); exit(255); } if(argc==3){ diff --git a/pattest.c b/pattest.c index 66dc968..01768a7 100644 --- a/pattest.c +++ b/pattest.c @@ -49,7 +49,7 @@ int main(int argc, char *argv[]) int errors=0; int bytes=0; if (argc < 2) { - fprintf(stderr, "Usage: markhdlctest \n"); + fprintf(stderr, "Usage: %s \n", argv[0]); exit(1); } fd = open(argv[1], O_RDWR, 0600); -- cgit v1.2.3