Skip to content

Commit 7a3d2b6

Browse files
ceolinhenrikbrixandersen
authored andcommitted
pm: policy_events: Fix variable scope
next_event should not be global. This can cause linkage conflicts if another file defines a symbol with the same name. Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
1 parent 6a11e15 commit 7a3d2b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

subsys/pm/policy/policy_events.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static struct k_spinlock events_lock;
1818
/** List of events. */
1919
static sys_slist_t events_list;
2020
/** Pointer to Next Event. */
21-
struct pm_policy_event *next_event;
21+
static struct pm_policy_event *next_event;
2222

2323
static void update_next_event(void)
2424
{

0 commit comments

Comments
 (0)