summaryrefslogtreecommitdiff
path: root/src/video_out/libdha/kernelhelper/test.c
diff options
context:
space:
mode:
authorJames Stembridge <jstembridge@users.sourceforge.net>2004-01-13 21:56:14 +0000
committerJames Stembridge <jstembridge@users.sourceforge.net>2004-01-13 21:56:14 +0000
commit0a1316f12b34c9efa3af9ee4d4c0eb0cb6fc85df (patch)
treeff9b67b3f307ef58da4edf1edd57c733d4663217 /src/video_out/libdha/kernelhelper/test.c
parent4d93af2dc3916d7e9009d55f0f6479cd49343cde (diff)
downloadxine-lib-0a1316f12b34c9efa3af9ee4d4c0eb0cb6fc85df.tar.gz
xine-lib-0a1316f12b34c9efa3af9ee4d4c0eb0cb6fc85df.tar.bz2
sync with vidix cvs
CVS patchset: 6043 CVS date: 2004/01/13 21:56:14
Diffstat (limited to 'src/video_out/libdha/kernelhelper/test.c')
-rw-r--r--src/video_out/libdha/kernelhelper/test.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_out/libdha/kernelhelper/test.c b/src/video_out/libdha/kernelhelper/test.c
index 3dfdaa02b..d2d807f3f 100644
--- a/src/video_out/libdha/kernelhelper/test.c
+++ b/src/video_out/libdha/kernelhelper/test.c
@@ -5,7 +5,8 @@
#include <errno.h>
#include <fcntl.h>
#include <sys/mman.h>
-
+#include <stdlib.h>
+
#include "dhahelper.h"
int main(int argc, char *argv[])
@@ -14,6 +15,10 @@ int main(int argc, char *argv[])
int ret;
fd = open("/dev/dhahelper", O_RDWR);
+ if(fd < 0){
+ perror("dev/dhahelper");
+ exit(1);
+ }
ioctl(fd, DHAHELPER_GET_VERSION, &ret);