summaryrefslogtreecommitdiffstats
path: root/src/hdaccess.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-02-03 09:48:17 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-02-03 09:48:17 +0100
commitc53bac566ba1ae52eb0b0c337275827dc6346a9a (patch)
tree905e63e0f0da4b8a98e04766f235b6eb150fc16f /src/hdaccess.c
parent2fc044d74cfedef2f045c13bf0c0eaf5f849b4da (diff)
hdaccess.c: fix compilation for cygwin (breakage introduced when fixing compilation warning)
Diffstat (limited to 'src/hdaccess.c')
-rw-r--r--src/hdaccess.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hdaccess.c b/src/hdaccess.c
index e4252e1..d4ec203 100644
--- a/src/hdaccess.c
+++ b/src/hdaccess.c
@@ -128,7 +128,7 @@ static int file_nopwrite(disk_t *disk_car, const void *buf, const unsigned int c
static int file_sync(disk_t *disk_car);
#ifndef DJGPP
static uint64_t compute_device_size(const int hd_h, const char *device, const int verbose, const unsigned int sector_size);
-static void disk_get_model(const int hd_h, disk_t *disk);
+static void disk_get_model(const int hd_h, disk_t *disk, const unsigned int verbose);
#endif
int generic_clean(disk_t *disk_car)
@@ -907,7 +907,7 @@ static int scsi_query_product_info (const int hd_h, char **vendor, char **produc
#endif
#ifndef DJGPP
-static void disk_get_model(const int hd_h, disk_t *dev)
+static void disk_get_model(const int hd_h, disk_t *dev, const unsigned int verbose)
{
#ifdef TARGET_LINUX
if(dev->model!=NULL)
@@ -970,7 +970,7 @@ static void disk_get_model(const int hd_h, disk_t *dev)
#else
handle=(HANDLE)_get_osfhandle(hd_h);
#endif
- file_win32_disk_get_model(handle, dev);
+ file_win32_disk_get_model(handle, dev, verbose);
}
#endif
}
@@ -1390,7 +1390,7 @@ disk_t *file_test_availability(const char *device, const int verbose, const arch
In order to avoid this, discard all blocks on /dev/hda. */
ioctl(hd_h, BLKFLSBUF); /* ignore errors */
#endif
- disk_get_model(hd_h, disk_car);
+ disk_get_model(hd_h, disk_car, verbose);
disk_get_hpa_dco(hd_h, disk_car, verbose);
}
else