--- qemu/tests/cris/check_openpf1.c 2018/04/24 16:48:00 1.1.1.1 +++ qemu/tests/cris/check_openpf1.c 2018/04/24 18:57:22 1.1.1.2 @@ -27,7 +27,7 @@ int main (int argc, char *argv[]) f = fopen (fnam, "rb"); if (f == NULL) abort (); - close (f); + fclose(f); /* Cover another execution path. */ if (fopen ("/nonexistent", "rb") != NULL