ejs: Remove cast to incompatible pointer.
authorKai Blin <kai@samba.org>
Wed, 26 Dec 2007 08:54:21 +0000 (09:54 +0100)
committerKai Blin <kai@samba.org>
Fri, 11 Jan 2008 10:12:45 +0000 (11:12 +0100)
(This used to be commit 89d5b91d3c4dae754178c82cb7a24e7c5af09fcd)

source4/scripting/ejs/ejsnet/net_user.c

index 34524cc0faba39a6670043892858a32b803cae85..57e538d3b4de725b0476f506defa9c14200fc61a 100644 (file)
@@ -195,9 +195,9 @@ static int ejs_net_deleteuser(MprVarHandle eid, int argc, char **argv)
                ejsSetErrorMsg(eid, "ctx property returns null pointer");
                goto done;
        }
-       
+
        /* domain where the account is to be deleted */
-       userman_domain = (struct libnet_context *)mprGetThisPtr(eid, "domain");
+       userman_domain = mprGetThisPtr(eid, "domain");
        if (!userman_domain) {
                ejsSetErrorMsg(eid, "domain property returns null pointer");
                goto done;
@@ -258,9 +258,9 @@ static int ejs_net_userinfo(MprVarHandle eid, int argc, char **argv)
                ejsSetErrorMsg(eid, "ctx property returns null pointer");
                goto done;
        }
-       
+
        /* domain where the user account is to be queried */
-       userman_domain = (struct libnet_context *)mprGetThisPtr(eid, "domain");
+       userman_domain = mprGetThisPtr(eid, "domain");
        if (userman_domain == NULL) {
                ejsSetErrorMsg(eid, "domain property returns null pointer");
                return -1;