equal
deleted
inserted
replaced
360 int fd; |
360 int fd; |
361 int *retval; |
361 int *retval; |
362 errno = 0; |
362 errno = 0; |
363 |
363 |
364 fd = open(filename, mode, S_IRUSR | S_IWUSR); |
364 fd = open(filename, mode, S_IRUSR | S_IWUSR); |
365 if (fd < 0) |
365 BAIL_IF_MACRO(fd < 0, strerror(errno), NULL); |
366 __PHYSFS_setError(strerror(errno)); |
|
367 |
366 |
368 retval = (int *) malloc(sizeof (int)); |
367 retval = (int *) malloc(sizeof (int)); |
369 if (retval == NULL) |
368 if (retval == NULL) |
370 { |
369 { |
371 close(fd); |
370 close(fd); |