From ec2f9974a3acf3795da36ecf0ee7f46b4d524148 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Sun, 25 Sep 2005 20:45:02 +0000 Subject: eliminate compiler warning (issue #5242) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@772 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- ztdiag.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ztdiag.c b/ztdiag.c index a1e476c..e2be5f3 100755 --- a/ztdiag.c +++ b/ztdiag.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -17,7 +18,7 @@ int main(int argc, char *argv[]) fprintf(stderr, "Usage: ztdiag \n"); exit(1); } - fd = open("/dev/zap/ctl"); + fd = open("/dev/zap/ctl", O_RDWR); if (fd < 0) { perror("open(/dev/zap/ctl"); exit(1); -- cgit v1.2.3