Issue #1338 - Part 1: Update NSPR to 4.24

This commit is contained in:
wolfbeast 2020-01-02 21:01:38 +01:00 • committed by Roy Tam
commit 1a92143e68
454 changed files with 42944 additions and 48647 deletions

View file

@ -29,20 +29,20 @@ int main(int argc, char **argv)
{
PR_STDIO_INIT();
t1 = PR_Open(argv[0], PR_RDONLY, 0666);
t1 = PR_Open(argv[0], PR_RDONLY, 0666);
if (t1 == NULL) {
printf ("error code is %d \n", PR_GetError());
printf ("File %s should be found\n", argv[0]);
return 1;
} else {
if (PR_Close(t1) == PR_SUCCESS) {
printf ("Test passed \n");
return 0;
} else {
printf ("cannot close file\n");
printf ("error code is %d\n", PR_GetError());
return 1;
}
}
}
if (t1 == NULL) {
printf ("error code is %d \n", PR_GetError());
printf ("File %s should be found\n", argv[0]);
return 1;
} else {
if (PR_Close(t1) == PR_SUCCESS) {
printf ("Test passed \n");
return 0;
} else {
printf ("cannot close file\n");
printf ("error code is %d\n", PR_GetError());
return 1;
}
}
}