mirror of https://github.com/i3/i3lock.git
s/pam_message/pam_response/ (Thanks Tucos)
The previous code didn’t cause any issues since both types (currently!) have the same size.pull/1/head
parent
603c90e985
commit
2cadf22c67
2
i3lock.c
2
i3lock.c
|
@ -439,7 +439,7 @@ static int conv_callback(int num_msg, const struct pam_message **msg,
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* PAM expects an array of responses, one for each message */
|
/* PAM expects an array of responses, one for each message */
|
||||||
if ((*resp = calloc(num_msg, sizeof(struct pam_message))) == NULL) {
|
if ((*resp = calloc(num_msg, sizeof(struct pam_response))) == NULL) {
|
||||||
perror("calloc");
|
perror("calloc");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue