summaryrefslogtreecommitdiff
path: root/source4/auth/pampass.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth/pampass.c')
-rw-r--r--source4/auth/pampass.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/auth/pampass.c b/source4/auth/pampass.c
index 045ceb7c72..a5c9a5de16 100644
--- a/source4/auth/pampass.c
+++ b/source4/auth/pampass.c
@@ -208,7 +208,6 @@ static struct chat_struct *make_pw_chat(char *p)
fstring reply;
struct chat_struct *list = NULL;
struct chat_struct *t;
- struct chat_struct *tmp;
while (1) {
t = (struct chat_struct *)malloc(sizeof(*t));
@@ -219,7 +218,7 @@ static struct chat_struct *make_pw_chat(char *p)
ZERO_STRUCTP(t);
- DLIST_ADD_END(list, t, tmp);
+ DLIST_ADD_END(list, t, struct chat_struct *);
if (!next_token(&p, prompt, NULL, sizeof(fstring)))
break;