summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2007-12-26 09:54:21 +0100
committerKai Blin <kai@samba.org>2008-01-11 11:12:45 +0100
commit7b7749042134e31490e21b3e001451eb0f8c410e (patch)
treebcd1d9f1ebf3fcc8baedd0c1b9e38c58dbe44197 /source4/scripting/ejs
parent9aec391c2473b68019e4ccb2eb7e1e1dd9e58033 (diff)
downloadsamba-7b7749042134e31490e21b3e001451eb0f8c410e.tar.gz
samba-7b7749042134e31490e21b3e001451eb0f8c410e.tar.bz2
samba-7b7749042134e31490e21b3e001451eb0f8c410e.zip
ejs: Remove cast to incompatible pointer.
(This used to be commit 89d5b91d3c4dae754178c82cb7a24e7c5af09fcd)
Diffstat (limited to 'source4/scripting/ejs')
-rw-r--r--source4/scripting/ejs/ejsnet/net_user.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/scripting/ejs/ejsnet/net_user.c b/source4/scripting/ejs/ejsnet/net_user.c
index 34524cc0fa..57e538d3b4 100644
--- a/source4/scripting/ejs/ejsnet/net_user.c
+++ b/source4/scripting/ejs/ejsnet/net_user.c
@@ -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;