r25027: Fix more warnings.
[jelmer/samba4-debian.git] / source / scripting / ejs / smbcalls_param.c
index 0e7a83457abf591c91571fa1ca0911b061aaba1a..9dfad39ee7e84d0bfe2e58c714ba5ab4894b47b3 100644 (file)
@@ -39,7 +39,7 @@ static int ejs_param_get(MprVarHandle eid, int argc, char **argv)
                return -1;
        }
 
-       ctx = mprGetThisPtr(eid, "param");
+       ctx = (struct param_context *)mprGetThisPtr(eid, "param");
        mprAssert(ctx);
        
        if (argc == 2) {
@@ -72,7 +72,7 @@ static int ejs_param_get_list(MprVarHandle eid, int argc, char **argv)
                return -1;
        }
 
-       ctx = mprGetThisPtr(eid, "param");
+       ctx = (struct param_context *)mprGetThisPtr(eid, "param");
        mprAssert(ctx);
        
        if (argc == 2) {
@@ -107,7 +107,7 @@ static int ejs_param_set(MprVarHandle eid, int argc, struct MprVar **argv)
                return -1;
        }
 
-       ctx = mprGetThisPtr(eid, "param");
+       ctx = (struct param_context *)mprGetThisPtr(eid, "param");
        mprAssert(ctx);
 
        
@@ -148,7 +148,7 @@ static int ejs_param_data(MprVarHandle eid, int argc, char **argv)
                return -1;
        }
 
-       ctx = mprGetThisPtr(eid, "param");
+       ctx = (struct param_context *)mprGetThisPtr(eid, "param");
        mprAssert(ctx);
 
        ret = mprObject("array");
@@ -184,7 +184,7 @@ static int ejs_param_load(MprVarHandle eid, int argc, char **argv)
                return -1;
        }
 
-       ctx = mprGetThisPtr(eid, "param");
+       ctx = (struct param_context *)mprGetThisPtr(eid, "param");
        mprAssert(ctx);
 
        ret = param_read(ctx, argv[0]);
@@ -209,7 +209,7 @@ static int ejs_param_save(MprVarHandle eid, int argc, char **argv)
                return -1;
        }
 
-       ctx = mprGetThisPtr(eid, "param");
+       ctx = (struct param_context *)mprGetThisPtr(eid, "param");
        mprAssert(ctx);
 
        ret = param_write(ctx, argv[0]);