mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Fixed compilation in Windows.
This commit is contained in:
parent
164c86d0e8
commit
85864928e9
1 changed files with 0 additions and 4 deletions
4
parity.c
4
parity.c
|
|
@ -119,9 +119,7 @@ bail:
|
|||
|
||||
int parity_open(struct snapraid_parity* parity, const char* path)
|
||||
{
|
||||
#if HAVE_POSIX_FADVISE
|
||||
int ret;
|
||||
#endif
|
||||
|
||||
pathcpy(parity->path, sizeof(parity->path), path);
|
||||
|
||||
|
|
@ -153,13 +151,11 @@ int parity_open(struct snapraid_parity* parity, const char* path)
|
|||
|
||||
return 0;
|
||||
|
||||
#if HAVE_POSIX_FADVISE
|
||||
bail:
|
||||
close(parity->f);
|
||||
parity->f = -1;
|
||||
parity->valid_size = 0;
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
int parity_sync(struct snapraid_parity* parity)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue