diff options
Diffstat (limited to 'apps/action.c')
-rw-r--r-- | apps/action.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/action.c b/apps/action.c index 07d3cb25a2..30eccb8d81 100644 --- a/apps/action.c +++ b/apps/action.c | |||
@@ -29,22 +29,22 @@ | |||
29 | #include "debug.h" | 29 | #include "debug.h" |
30 | #include "splash.h" | 30 | #include "splash.h" |
31 | 31 | ||
32 | bool ignore_until_release = false; | 32 | static bool ignore_until_release = false; |
33 | int last_button = BUTTON_NONE; | 33 | static int last_button = BUTTON_NONE; |
34 | 34 | ||
35 | /* software keylock stuff */ | 35 | /* software keylock stuff */ |
36 | #ifndef HAS_BUTTON_HOLD | 36 | #ifndef HAS_BUTTON_HOLD |
37 | bool keys_locked = false; | 37 | static bool keys_locked = false; |
38 | int unlock_combo = BUTTON_NONE; | 38 | static int unlock_combo = BUTTON_NONE; |
39 | bool screen_has_lock = false; | 39 | static bool screen_has_lock = false; |
40 | #endif /* HAVE_SOFTWARE_KEYLOCK */ | 40 | #endif /* HAVE_SOFTWARE_KEYLOCK */ |
41 | 41 | ||
42 | /* | 42 | /* |
43 | * do_button_check is the worker function for get_default_action. | 43 | * do_button_check is the worker function for get_default_action. |
44 | * returns ACTION_UNKNOWN or the requested return value from the list. | 44 | * returns ACTION_UNKNOWN or the requested return value from the list. |
45 | */ | 45 | */ |
46 | inline int do_button_check(const struct button_mapping *items, | 46 | static inline int do_button_check(const struct button_mapping *items, |
47 | int button, int last_button, int *start) | 47 | int button, int last_button, int *start) |
48 | { | 48 | { |
49 | int i = 0; | 49 | int i = 0; |
50 | int ret = ACTION_UNKNOWN; | 50 | int ret = ACTION_UNKNOWN; |
@@ -68,7 +68,7 @@ inline int do_button_check(const struct button_mapping *items, | |||
68 | return ret; | 68 | return ret; |
69 | } | 69 | } |
70 | 70 | ||
71 | inline int get_next_context(const struct button_mapping *items, int i) | 71 | static inline int get_next_context(const struct button_mapping *items, int i) |
72 | { | 72 | { |
73 | while (items[i].button_code != BUTTON_NONE) | 73 | while (items[i].button_code != BUTTON_NONE) |
74 | i++; | 74 | i++; |
@@ -92,8 +92,8 @@ inline int get_next_context(const struct button_mapping *items, int i) | |||
92 | Any number >0 to wait that many ticks for a press | 92 | Any number >0 to wait that many ticks for a press |
93 | 93 | ||
94 | */ | 94 | */ |
95 | int get_action_worker(int context, int timeout, | 95 | static int get_action_worker(int context, int timeout, |
96 | const struct button_mapping* (*get_context_map)(int) ) | 96 | const struct button_mapping* (*get_context_map)(int) ) |
97 | { | 97 | { |
98 | const struct button_mapping *items = NULL; | 98 | const struct button_mapping *items = NULL; |
99 | int button; | 99 | int button; |