diff --git a/platform/native/clock.c b/platform/native/clock.c index 2cfed7d23..4bf0389d4 100644 --- a/platform/native/clock.c +++ b/platform/native/clock.c @@ -46,9 +46,9 @@ clock_time_t clock_time(void) { struct timeval tv; - + gettimeofday(&tv, NULL); - + return tv.tv_sec * 1000 + tv.tv_usec / 1000; } /*---------------------------------------------------------------------------*/ @@ -56,9 +56,9 @@ unsigned long clock_seconds(void) { struct timeval tv; - + gettimeofday(&tv, NULL); - + return tv.tv_sec; } /*---------------------------------------------------------------------------*/ diff --git a/platform/native/contiki-main.c b/platform/native/contiki-main.c index c5086af26..678d10073 100644 --- a/platform/native/contiki-main.c +++ b/platform/native/contiki-main.c @@ -221,9 +221,9 @@ main(int argc, char **argv) #endif serial_line_init(); - + autostart_start(autostart_processes); - + /* Make standard output unbuffered. */ setvbuf(stdout, (char *)NULL, _IONBF, 0); diff --git a/platform/native/dev/eeprom.c b/platform/native/dev/eeprom.c index 040902354..e803b56fe 100644 --- a/platform/native/dev/eeprom.c +++ b/platform/native/dev/eeprom.c @@ -53,9 +53,9 @@ eeprom_write(eeprom_addr_t addr, unsigned char *buf, int size) lseek(f, addr, SEEK_SET); write(f, buf, size); close(f); - + printf("eeprom_write(addr 0x%02x, buf %p, size %d);\n", addr, buf, size); - + memcpy(&eeprom[addr], buf, size); } void diff --git a/platform/native/dev/xmem.c b/platform/native/dev/xmem.c index d1b5f2dc8..b95616049 100644 --- a/platform/native/dev/xmem.c +++ b/platform/native/dev/xmem.c @@ -56,9 +56,9 @@ xmem_pwrite(const void *buf, int size, unsigned long offset) lseek(f, addr, SEEK_SET); write(f, buf, size); close(f);*/ - + /* printf("xmem_write(offset 0x%02x, buf %p, size %l);\n", offset, buf, size);*/ - + memcpy(&xmem[offset], buf, size); return size; }