r25000: Fix some more C++ compatibility warnings.
[tprouty/samba.git] / source / scripting / ejs / smbcalls_rpc.c
index 4addd473dab2bda37482e5a0de4e75c7518d4afb..b95681d4ef319f6263bd1f92a21611335125a378 100644 (file)
@@ -144,7 +144,8 @@ static int ejs_rpc_connect(MprVarHandle eid, int argc, char **argv)
 
        credentials = mprGetProperty(this, "credentials", NULL);
        if (credentials) {
-               creds = mprGetPtr(credentials, "creds");
+               creds = (struct cli_credentials *)
+                               mprGetPtr(credentials, "creds");
        } else {
                creds = cmdline_credentials;
        }
@@ -188,7 +189,7 @@ static int ejs_irpc_call(int eid, struct MprVar *io,
        int i, count;
        struct MprVar *results;
 
-       p = mprGetThisPtr(eid, "irpc");
+       p = (struct ejs_irpc_connection *)mprGetThisPtr(eid, "irpc");
 
        ejs = talloc(mprMemCtx(), struct ejs_rpc);
        if (ejs == NULL) {