diff options
author | Don Gagne <don@thegagnes.com> | 2014-07-05 13:35:12 -0700 |
---|---|---|
committer | Don Gagne <don@thegagnes.com> | 2014-07-05 13:35:12 -0700 |
commit | b9299e68d4147845bab9ed99509b3e50b7c94ae1 (patch) | |
tree | 4036204d3b4b2919c360c94d724fbb6d2c613c10 /src/modules/systemlib | |
parent | bd88951f6ce609bc5ba364bfa3d19ae61e444964 (diff) | |
download | px4-firmware-b9299e68d4147845bab9ed99509b3e50b7c94ae1.tar.gz px4-firmware-b9299e68d4147845bab9ed99509b3e50b7c94ae1.tar.bz2 px4-firmware-b9299e68d4147845bab9ed99509b3e50b7c94ae1.zip |
Compiler warning fixes
Diffstat (limited to 'src/modules/systemlib')
-rw-r--r-- | src/modules/systemlib/cpuload.c | 2 | ||||
-rw-r--r-- | src/modules/systemlib/systemlib.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/systemlib/cpuload.c b/src/modules/systemlib/cpuload.c index ccc516f39..7aa2f3a5f 100644 --- a/src/modules/systemlib/cpuload.c +++ b/src/modules/systemlib/cpuload.c @@ -67,7 +67,7 @@ __EXPORT void sched_note_switch(FAR struct tcb_s *pFromTcb, FAR struct tcb_s *pT __EXPORT struct system_load_s system_load; -extern FAR struct _TCB *sched_gettcb(pid_t pid); +extern FAR struct tcb_s *sched_gettcb(pid_t pid); void cpuload_initialize_once() { diff --git a/src/modules/systemlib/systemlib.c b/src/modules/systemlib/systemlib.c index 9fff3eb88..90d8dd77c 100644 --- a/src/modules/systemlib/systemlib.c +++ b/src/modules/systemlib/systemlib.c @@ -54,6 +54,9 @@ #include "systemlib.h" +// Didn't seem right to include up_internal.h, so direct extern instead. +extern void up_systemreset(void) noreturn_function; + void systemreset(bool to_bootloader) { |