summaryrefslogtreecommitdiff
path: root/dahdi_cfg.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-05-23 15:46:27 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-05-23 15:46:27 +0000
commit06a471999f5f815553ee9e412f6a6f206fe63651 (patch)
treec32e3596af62bc1df388a0319183de06f82c7d90 /dahdi_cfg.c
parent6eff5f1d9662f4913fec0f90a22c2ad869a4111d (diff)
svn-commit.tmp
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4348 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'dahdi_cfg.c')
-rw-r--r--dahdi_cfg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/dahdi_cfg.c b/dahdi_cfg.c
index 158f255..34eb74c 100644
--- a/dahdi_cfg.c
+++ b/dahdi_cfg.c
@@ -1260,6 +1260,7 @@ static void usage(char *argv0, int exitcode)
c = argv0;
else
c++;
+ fprintf(stderr, "%s\n", tools_version);
fprintf(stderr,
"Usage: %s [options]\n"
" Valid options are:\n"
@@ -1280,6 +1281,7 @@ int main(int argc, char *argv[])
char *buf;
char *key, *value;
int x,found;
+
while((c = getopt(argc, argv, "fthc:vsd::")) != -1) {
switch(c) {
case 'c':
@@ -1311,6 +1313,11 @@ int main(int argc, char *argv[])
break;
}
}
+
+ if (verbose) {
+ fprintf(stderr, "%s\n", tools_version);
+ }
+
if (fd == -1) fd = open(MASTER_DEVICE, O_RDWR);
if (fd < 0)
error("Unable to open master device '%s'\n", MASTER_DEVICE);