summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-23 08:16:55 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-23 08:16:55 -0500
commit876af7a1a02b52611e64a2b5fef9446f66b2b589 (patch)
tree03aeb62edabad822a0dc37f438a046d393c7a615 /c
parentleon3/.../ckinit.c: Fix missing prototype warnings (diff)
downloadrtems-876af7a1a02b52611e64a2b5fef9446f66b2b589.tar.bz2
leon3/.../ckinit.c: Change get nanoseconds handler to static
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/sparc/leon3/clock/ckinit.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
index 8aa0af390f..e0556ba31a 100644
--- a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
+++ b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
@@ -93,12 +93,7 @@ static int clkirq;
LEON3_Timer_Regs->timer[LEON3_CLOCK_INDEX].ctrl = 0; \
} while (0)
-/*
- * Prototype to avoid warnings and body of get nanoseconds since last tick
- */
-uint32_t bsp_clock_nanoseconds_since_last_tick(void);
-
-uint32_t bsp_clock_nanoseconds_since_last_tick(void)
+static uint32_t bsp_clock_nanoseconds_since_last_tick(void)
{
uint32_t clicks;
uint32_t usecs;