ref: 0f1cc07213540e99bdfe5c4ee6c49b6e583ffbb7
parent: b0df6d36f11be07a46bce904489624e530d8618c
author: gkostka <kostka.grzegorz@gmail.com>
date: Sun Oct 27 10:07:04 EDT 2013
BUGFIX: 1. gettimeofday bad param list 2. No buffering at file.
--- a/blockdev/filedev/ext4_filedev.c
+++ b/blockdev/filedev/ext4_filedev.c
@@ -73,6 +73,9 @@
if(!dev_file)
return EIO;
+ /*No buffering at file.*/
+ setbuf(dev_file, 0);
+
if(fseek(dev_file, 0, SEEK_END))
return EFAULT;
--- a/demos/generic/main.c
+++ b/demos/generic/main.c
@@ -208,7 +208,7 @@
static clock_t get_ms(void)
{
struct timeval t;
- gettimeofday(&t);
+ gettimeofday(&t, NULL);
return (t.tv_sec * 1000) + (t.tv_usec / 1000);
}