diff options
Diffstat (limited to '')
-rw-r--r-- | bmlutils/bmlutils.c | 2 | ||||
-rw-r--r-- | mmcutils/mmcutils.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bmlutils/bmlutils.c b/bmlutils/bmlutils.c index 4c7c49d03..7875f6faf 100644 --- a/bmlutils/bmlutils.c +++ b/bmlutils/bmlutils.c @@ -134,7 +134,7 @@ int cmd_bml_backup_raw_partition(const char *partition, const char *out_file) } } - fsync(out); + fsync(fileno(out)); ret = 0; ERROR1: fclose ( out ); diff --git a/mmcutils/mmcutils.c b/mmcutils/mmcutils.c index f9c7b702a..6d976b5ad 100644 --- a/mmcutils/mmcutils.c +++ b/mmcutils/mmcutils.c @@ -458,7 +458,7 @@ mmc_raw_copy (const MmcPartition *partition, char *in_file) { } } - fsync(out); + fsync(fileno(out)); ret = 0; ERROR1: fclose ( out ); @@ -509,7 +509,7 @@ mmc_raw_dump_internal (const char* in_file, const char *out_file) { } } - fsync(out); + fsync(fileno(out)); ret = 0; ERROR1: fclose ( out ); |