Fix two incompatible pointer warnings
authorVolker Lendecke <vl@samba.org>
Sat, 8 Dec 2007 10:20:53 +0000 (11:20 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 8 Dec 2007 17:39:20 +0000 (09:39 -0800)
Jeremy, please check
(This used to be commit 60500fac30911500eade7c2a9aa13569dcab0911)

source3/auth/pampass.c
source3/nmbd/nmbd_winsserver.c

index 554df3c157c8c2d1bf1299b4c34e449442fbe2c7..58921bdf154926ae9d06b56c4f9c3b582ddc1f58 100644 (file)
@@ -238,7 +238,7 @@ static struct chat_struct *make_pw_chat(const char *p)
                strlower_m(t->prompt);
                trim_char(t->prompt, ' ', ' ');
 
-               if (!next_token_talloc(frame, &p, reply, NULL)) {
+               if (!next_token_talloc(frame, &p, &reply, NULL)) {
                        break;
                }
 
index 7dafa66b11730759cbb2c49eb5157e88ed6a5b13..7344a29fe411d78cf4317e61fdb883f60e5945e4 100644 (file)
@@ -655,7 +655,7 @@ bool initialise_wins(void)
                        continue;
                }
 
-               if (!next_token_talloc(frame,&ptr,ttl_str,NULL)) {
+               if (!next_token_talloc(frame,&ptr,&ttl_str,NULL)) {
                        DEBUG(0,("initialise_wins: Failed to parse time to live when parsing line %s\n", line ));
                        TALLOC_FREE(frame);
                        continue;