[Asterisk-cvs] zaptel ztdiag.c,1.2,1.3
kpfleming
kpfleming
Sun Sep 25 16:48:03 CDT 2005
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv14635
Modified Files:
ztdiag.c
Log Message:
eliminate compiler warning (issue #5242)
Index: ztdiag.c
===================================================================
RCS file: /usr/cvsroot/zaptel/ztdiag.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ztdiag.c 20 Apr 2005 16:17:17 -0000 1.2
+++ ztdiag.c 25 Sep 2005 20:45:02 -0000 1.3
@@ -1,3 +1,4 @@
+#include <fcntl.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <stdlib.h>
@@ -17,7 +18,7 @@
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);
More information about the svn-commits
mailing list