summaryrefslogtreecommitdiff
path: root/src/dxr3/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dxr3/compat.c')
-rw-r--r--src/dxr3/compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dxr3/compat.c b/src/dxr3/compat.c
index a4722f923..cbb1f3fb5 100644
--- a/src/dxr3/compat.c
+++ b/src/dxr3/compat.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 the xine project
+ * Copyright (C) 2010-2014 the xine project
*
* This file is part of xine, a free video player.
*
@@ -22,7 +22,7 @@
int dxr3_compat_ioctl (int fd, int rq, void *arg)
{
int ret = ioctl (fd, rq, arg);
- if (ret < 0 && errno == EINVAL || errno == ENOTTY)
+ if (ret < 0 && (errno == EINVAL || errno == ENOTTY))
ret = ioctl (fd, rq & 0xFF, arg);
return ret;
}