diff options
author | Jasper Lievisse Adriaanse <jasper@humppa.nl> | 2017-04-15 09:39:13 +0200 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@humppa.nl> | 2017-04-15 09:44:09 +0200 |
commit | c1de1178254c786d9cd4fe2b36f72e6e26778f57 (patch) | |
tree | 111a6407c1f1e9f9a29350ee3ccea7e698a11d82 /xcb.c | |
parent | 512c10f1ddff05998b23450a2d834ffb36a5be38 (diff) |
Rename all PAM-independant variables/comments.
there is nothing PAM-specific about pam_state or pam_state_t. therefore
rename them to be authenticator independant.
Diffstat (limited to 'xcb.c')
-rw-r--r-- | xcb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,7 +24,7 @@ #include "cursors.h" #include "unlock_indicator.h" -extern pam_state_t pam_state; +extern auth_state_t auth_state; xcb_connection_t *conn; xcb_screen_t *screen; @@ -262,7 +262,7 @@ void grab_pointer_and_keyboard(xcb_connection_t *conn, xcb_screen_t *screen, xcb /* After trying for 10000 times, i3lock will display an error message * for 2 sec prior to terminate. */ if (tries <= 0) { - pam_state = STATE_I3LOCK_LOCK_FAILED; + auth_state = STATE_I3LOCK_LOCK_FAILED; redraw_screen(); sleep(1); errx(EXIT_FAILURE, "Cannot grab pointer/keyboard"); |