diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-09-25 20:45:02 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-09-25 20:45:02 +0000 |
commit | ec2f9974a3acf3795da36ecf0ee7f46b4d524148 (patch) | |
tree | 5aa49f59104e2ad1e12d10c80b8b79ef9f6786e9 | |
parent | 744aa75e04d2af602c607380838991a97b06db72 (diff) |
eliminate compiler warning (issue #5242)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@772 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | ztdiag.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,3 +1,4 @@ +#include <fcntl.h> #include <sys/ioctl.h> #include <stdio.h> #include <stdlib.h> @@ -17,7 +18,7 @@ int main(int argc, char *argv[]) fprintf(stderr, "Usage: ztdiag <channel>\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); |