summaryrefslogtreecommitdiffstats
path: root/src/hdaccess.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hdaccess.c')
-rw-r--r--src/hdaccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hdaccess.c b/src/hdaccess.c
index dc8651ce..e1d2538f 100644
--- a/src/hdaccess.c
+++ b/src/hdaccess.c
@@ -1228,8 +1228,8 @@ static int file_nopwrite(disk_t *disk_car, const void *buf, const unsigned int c
static int file_sync(disk_t *disk_car)
{
- struct info_file_struct *data=(struct info_file_struct *)disk_car->data;
#ifdef HAVE_FSYNC
+ struct info_file_struct *data=(struct info_file_struct *)disk_car->data;
return fsync(data->handle);
#else
errno=EINVAL;