summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/gen68360/timer/timer.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-04-28 19:16:22 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-04-28 19:16:22 +0000
commit427bb7d1d45737bc385b5af9e4830d43d7025d38 (patch)
tree072c71f469261cfe732b4c3d0e6351a91636016d /c/src/lib/libbsp/m68k/gen68360/timer/timer.c
parent2010-04-28 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-427bb7d1d45737bc385b5af9e4830d43d7025d38.tar.bz2
2010-04-28 Joel Sherrill <joel.sherrilL@OARcorp.com>
* startup/init68360.c, timer/timer.c: Remove warnings.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/m68k/gen68360/timer/timer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/m68k/gen68360/timer/timer.c b/c/src/lib/libbsp/m68k/gen68360/timer/timer.c
index f169a00db7..c541765d30 100644
--- a/c/src/lib/libbsp/m68k/gen68360/timer/timer.c
+++ b/c/src/lib/libbsp/m68k/gen68360/timer/timer.c
@@ -72,7 +72,10 @@ benchmark_timer_initialize (void)
int
benchmark_timer_read (void)
{
- return *(uint32_t*)&m360.tcn1;
+ unsigned short val;
+
+ val = m360.tcn1;
+ return val;
}
void