summaryrefslogtreecommitdiff
path: root/intel
diff options
context:
space:
mode:
Diffstat (limited to 'intel')
-rw-r--r--intel/test_decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/intel/test_decode.c b/intel/test_decode.c
index bef86bb9..b4eddcd1 100644
--- a/intel/test_decode.c
+++ b/intel/test_decode.c
@@ -56,7 +56,7 @@ read_file(const char *filename, void **ptr, size_t *size)
struct stat st;
fd = open(filename, O_RDONLY);
- if (fd == -1)
+ if (fd < 0)
errx(1, "couldn't open `%s'", filename);
ret = fstat(fd, &st);