Herb's warning fixes. Also the POSIX locking fix.
[samba.git] / source3 / rpc_client / ncacn_np_use.c
index 8e5c7240461fc07b99ded79c3f3b12bceda15a14..1a3938b6e9d731b1b75b30cd0808f0e2fcda8b22 100644 (file)
@@ -77,7 +77,7 @@ static BOOL ncacn_np_establish_connection(struct ncacn_np *cli,
                 return False;
         }
         /* if (!cli_nt_session_open(cli->smb, pipe_name, &cli->fnum))  by JERRY */
-        if (!cli_nt_session_open(cli->smb, pipe_name))
+        if (!cli_nt_session_open(cli->smb, (char *)pipe_name))
         {
                 cli_net_use_del(srv_name, ntc, False, NULL);
                 return False;
@@ -331,7 +331,7 @@ static struct ncacn_np_use *ncacn_np_find(const char *srv_name,
                         continue;
                 }
                 if (!reuse
-                    && !pwd_compare(&usr_creds->pwd, &c->cli->smb->pwd))
+                    && !pwd_compare((struct pwd_info *)&usr_creds->pwd, &c->cli->smb->pwd))
                 {
                         DEBUG(100, ("password doesn't match\n"));
                         continue;