Skip to contentSkip to conversation

ETRAX: Removed unused struct entry and fixed Windows build.

PATCH Applied Stefan Weil 2 participants 2 messages May 23, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ETRAX: Removed unused struct entry and fixed Windows build.

"struct timeval last" caused a compilation error with mingw32 (missing header for struct timeval).

It is unused, so it was possible to remove it.

---
 hw/etraxfs_timer.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
hw/etraxfs_timer.c +0 -1
index 793c5eb..79eceb8 100644
@@ -52,7 +52,6 @@ struct etrax_timer {
     ptimer_state *ptimer_t0;
     ptimer_state *ptimer_t1;
     ptimer_state *ptimer_wd;
-    struct timeval last;
 
     int wd_hits;
 

--
1.5.6.5

#1 lore raw
Quoted 4 lines · Stefan Weil

"struct timeval last" caused a compilation error with mingw32 (missing header for struct timeval).

It is unused, so it was possible to remove it.

Thanks, applied.

Quoted 22 lines
---
 hw/etraxfs_timer.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
hw/etraxfs_timer.c +0 -2
index 793c5eb..79eceb8 100644
@@ -52,7 +52,6 @@ struct etrax_timer {
     ptimer_state *ptimer_t0;
     ptimer_state *ptimer_t1;
     ptimer_state *ptimer_wd;
-    struct timeval last;
 
     int wd_hits;
 
--

1.5.6.5