From 3d33248eff365a21360dd851efef898a93cd53f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 19 Mar 2013 19:54:09 +0100 Subject: [PATCH] native: Fix trailing whitespace --- platform/native/clock.c | 8 ++++---- platform/native/contiki-main.c | 4 ++-- platform/native/dev/eeprom.c | 4 ++-- platform/native/dev/xmem.c | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/platform/native/clock.c b/platform/native/clock.c index 2cfed7d2345..4bf0389d415 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 c5086af26f8..678d100739d 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 04090235441..e803b56fe39 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 d1b5f2dc8ab..b9561604936 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; }