OSDN Git Service

Export drmDevicesEqual
[android-x86/external-libdrm.git] / intel / test_decode.c
index bef86bb..b4eddcd 100644 (file)
@@ -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);