summaryrefslogtreecommitdiff
path: root/src/video_out/libdha/kernelhelper/test.c
diff options
context:
space:
mode:
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);