aboutsummaryrefslogtreecommitdiffstats
path: root/swaylock/password.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaylock/password.c')
-rw-r--r--swaylock/password.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/swaylock/password.c b/swaylock/password.c
index 3f9949b2..fecaecbf 100644
--- a/swaylock/password.c
+++ b/swaylock/password.c
@@ -40,7 +40,7 @@ static void append_ch(struct swaylock_password *pw, uint32_t codepoint) {
40 pw->len += utf8_size; 40 pw->len += utf8_size;
41} 41}
42 42
43static void clear_indicator(int fd, short mask, void *data) { 43static void clear_indicator(void *data) {
44 struct swaylock_state *state = data; 44 struct swaylock_state *state = data;
45 state->clear_indicator_timer = NULL; 45 state->clear_indicator_timer = NULL;
46 state->auth_state = AUTH_STATE_IDLE; 46 state->auth_state = AUTH_STATE_IDLE;
@@ -49,13 +49,13 @@ static void clear_indicator(int fd, short mask, void *data) {
49 49
50static void schedule_indicator_clear(struct swaylock_state *state) { 50static void schedule_indicator_clear(struct swaylock_state *state) {
51 if (state->clear_indicator_timer) { 51 if (state->clear_indicator_timer) {
52 loop_remove_event(state->eventloop, state->clear_indicator_timer); 52 loop_remove_timer(state->eventloop, state->clear_indicator_timer);
53 } 53 }
54 state->clear_indicator_timer = loop_add_timer( 54 state->clear_indicator_timer = loop_add_timer(
55 state->eventloop, 3000, clear_indicator, state); 55 state->eventloop, 3000, clear_indicator, state);
56} 56}
57 57
58static void clear_password(int fd, short mask, void *data) { 58static void clear_password(void *data) {
59 struct swaylock_state *state = data; 59 struct swaylock_state *state = data;
60 state->clear_password_timer = NULL; 60 state->clear_password_timer = NULL;
61 state->auth_state = AUTH_STATE_CLEAR; 61 state->auth_state = AUTH_STATE_CLEAR;
@@ -66,13 +66,13 @@ static void clear_password(int fd, short mask, void *data) {
66 66
67static void schedule_password_clear(struct swaylock_state *state) { 67static void schedule_password_clear(struct swaylock_state *state) {
68 if (state->clear_password_timer) { 68 if (state->clear_password_timer) {
69 loop_remove_event(state->eventloop, state->clear_password_timer); 69 loop_remove_timer(state->eventloop, state->clear_password_timer);
70 } 70 }
71 state->clear_password_timer = loop_add_timer( 71 state->clear_password_timer = loop_add_timer(
72 state->eventloop, 10000, clear_password, state); 72 state->eventloop, 10000, clear_password, state);
73} 73}
74 74
75static void handle_preverify_timeout(int fd, short mask, void *data) { 75static void handle_preverify_timeout(void *data) {
76 struct swaylock_state *state = data; 76 struct swaylock_state *state = data;
77 state->verify_password_timer = NULL; 77 state->verify_password_timer = NULL;
78} 78}