summaryrefslogtreecommitdiffstats
path: root/src/hdaccess.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-08-23 16:01:55 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-08-23 16:01:55 +0200
commit90f2b63eac56a8c5dfb8d6471f817b3f9c9ecdc0 (patch)
tree5397292a9a47fd7eba91c3913f4fd396e0dccecc /src/hdaccess.c
parent643d625772c17a9467512f050b95e81b83b8594c (diff)
Code cleanup
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 dc8651c..e1d2538 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;