summaryrefslogtreecommitdiffstats
path: root/src/win32.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-04-05 12:31:37 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-04-05 12:31:37 +0200
commit0632f445a834e57a63904d7adbb08b0588d96e24 (patch)
tree60bdb5d5829e260fc5423230a4a51a318877e451 /src/win32.c
parentf2b5381311eb0223bfaa32a3ea0d329d2e7a759d (diff)
Windows, fix the argument order
Diffstat (limited to 'src/win32.c')
-rw-r--r--src/win32.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/win32.c b/src/win32.c
index 5275de2..d2a3b0c 100644
--- a/src/win32.c
+++ b/src/win32.c
@@ -58,9 +58,9 @@ static uint64_t filewin32_getfilesize(HANDLE handle, const char *device);
static const char *file_win32_description(disk_t *disk_car);
static const char *file_win32_description_short(disk_t *disk_car);
static int file_win32_clean(disk_t *disk_car);
-static int file_win32_pread(disk_t *disk_car, const unsigned int count, void *buf, const uint64_t offset);
-static int file_win32_pwrite(disk_t *disk_car,const unsigned int count, const void *buf, const uint64_t offset);
-static int file_win32_nopwrite(disk_t *disk_car, const unsigned int count, const void *buf, const uint64_t offset);
+static int file_win32_pread(disk_t *disk_car, void *buf, const unsigned int count, const uint64_t offset);
+static int file_win32_pwrite(disk_t *disk_car, const void *buf, const unsigned int count, const uint64_t offset);
+static int file_win32_nopwrite(disk_t *disk_car, const void *buf, const unsigned int count, const uint64_t offset);
static int file_win32_sync(disk_t *disk_car);
static uint64_t filewin32_setfilepointer(HANDLE handle, const char *device);
@@ -487,7 +487,7 @@ static int file_win32_pread_aux(disk_t *disk_car, void *buf, const unsigned int
return ret;
}
-static int file_win32_pread(disk_t *disk_car,const unsigned int count, void *buf, const uint64_t offset)
+static int file_win32_pread(disk_t *disk_car, void *buf, const unsigned int count, const uint64_t offset)
{
return align_pread(&file_win32_pread_aux, disk_car, buf, count, offset);
}
@@ -534,12 +534,12 @@ static int file_win32_pwrite_aux(disk_t *disk_car, const void *buf, const unsign
return ret;
}
-static int file_win32_pwrite(disk_t *disk_car,const unsigned int count, const void *buf, const uint64_t offset)
+static int file_win32_pwrite(disk_t *disk_car, const void *buf, const unsigned int count, const uint64_t offset)
{
return align_pwrite(&file_win32_pread_aux, &file_win32_pwrite_aux, disk_car, buf, count, offset);
}
-static int file_win32_nopwrite(disk_t *disk_car,const unsigned int count, const void *buf, const uint64_t offset)
+static int file_win32_nopwrite(disk_t *disk_car, const void *buf, const unsigned int count, const uint64_t offset)
{
const struct info_file_win32_struct *data=disk_car->data;
log_warning("file_win32_nopwrite(%d,%u,buffer,%lu(%u/%u/%u)) write refused\n", (unsigned int)data->handle,