diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-06-08 22:02:13 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-06-14 14:00:57 -0400 |
commit | b3e4ff7ef098456fe66f69fbcef2bdc27d5b30dc (patch) | |
tree | ffcf3995878113e57d2b4c7f6f3fcba0832b8cdb | |
parent | b0524947e5a86bdbdd58dab42de3363a627e6910 (diff) | |
download | kutter-b3e4ff7ef098456fe66f69fbcef2bdc27d5b30dc.tar.gz kutter-b3e4ff7ef098456fe66f69fbcef2bdc27d5b30dc.tar.xz kutter-b3e4ff7ef098456fe66f69fbcef2bdc27d5b30dc.zip |
sched: Use 'unsigned int' instead of 'uint16_t' for shutdown reason
Use 'unsigned int' instead of 'uint16_t' as is faster on some
platforms.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | src/sched.c | 4 | ||||
-rw-r--r-- | src/sched.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sched.c b/src/sched.c index 6b9ec16f..450bc2c8 100644 --- a/src/sched.c +++ b/src/sched.c @@ -234,7 +234,7 @@ run_shutdown(void) // Shutdown the machine if not already in the process of shutting down void -sched_try_shutdown(uint16_t reason) +sched_try_shutdown(unsigned int reason) { if (shutdown_status != 2) sched_shutdown(reason); @@ -244,7 +244,7 @@ static jmp_buf shutdown_jmp; // Force the machine to immediately run the shutdown handlers void -sched_shutdown(uint16_t reason) +sched_shutdown(unsigned int reason) { irq_disable(); shutdown_reason = reason; diff --git a/src/sched.h b/src/sched.h index aabb17b0..bdef5e4c 100644 --- a/src/sched.h +++ b/src/sched.h @@ -32,8 +32,8 @@ void sched_timer_kick(void); uint8_t sched_is_shutdown(void); uint16_t sched_shutdown_reason(void); void sched_clear_shutdown(void); -void sched_try_shutdown(uint16_t reason); -void sched_shutdown(uint16_t reason) __noreturn; +void sched_try_shutdown(unsigned int reason); +void sched_shutdown(unsigned int reason) __noreturn; void sched_main(void); // Compiler glue for DECL_X macros above. |