Removed clashing of sopen in Windows.

This commit is contained in:
Andrea Mazzoleni 2011-06-26 11:16:47 +02:00
parent b90e7fdacf
commit 4bf68b6204
4 changed files with 7 additions and 6 deletions

View file

@ -70,7 +70,7 @@ void state_config(struct snapraid_state* state, const char* path, int verbose, i
fflush(stderr);
}
f = sopen(path);
f = sopen_read(path);
if (!f) {
if (errno == ENOENT) {
fprintf(stderr, "No configuration file found at '%s'\n", path);
@ -305,7 +305,7 @@ void state_read(struct snapraid_state* state)
}
printf("Loading state from %s...\n", path);
f = sopen(path);
f = sopen_read(path);
if (f != 0) {
/* if openend stop the search */
break;