summaryrefslogtreecommitdiff
path: root/dahdi_diag.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-05-23 15:16:24 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-05-23 15:16:24 +0000
commit04128951db339ddfd7905adf92990f00a3a01447 (patch)
treefed6cec907ec871794693772483db9bd04e0422d /dahdi_diag.c
parente027cd533ab52f09186f1bd4cd33e0f3aac0363c (diff)
yay, all the tools compile now
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4339 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'dahdi_diag.c')
-rw-r--r--dahdi_diag.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/dahdi_diag.c b/dahdi_diag.c
index 50900a8..1b5b105 100644
--- a/dahdi_diag.c
+++ b/dahdi_diag.c
@@ -4,11 +4,7 @@
#include <stdlib.h>
#include <unistd.h>
-#ifdef STANDALONE_ZAPATA
-#include "kernel/zaptel.h"
-#else
-#include <zaptel/zaptel.h>
-#endif
+#include <dahdi/user.h>
int main(int argc, char *argv[])
{
@@ -23,8 +19,8 @@ int main(int argc, char *argv[])
perror("open(/dev/zap/ctl");
exit(1);
}
- if (ioctl(fd, ZT_CHANDIAG, &chan)) {
- perror("ioctl(ZT_CHANDIAG)");
+ if (ioctl(fd, DAHDI_CHANDIAG, &chan)) {
+ perror("ioctl(DAHDI_CHANDIAG)");
exit(1);
}
exit(0);