mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 15:06:34 -05:00
Removed clashing of sopen in Windows.
This commit is contained in:
parent
b90e7fdacf
commit
4bf68b6204
4 changed files with 7 additions and 6 deletions
4
state.c
4
state.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue