diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-02 11:12:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:19:05 -0500 |
commit | 9331714787f663a1b46447598a7edf0ebff7d355 (patch) | |
tree | d203ba0c341e121f28717c45ce868a02ea1b4ac8 /source4/scripting/ejs/mprutil.c | |
parent | 75883a2237f52863df2eff1fe9d9ee8408b40feb (diff) | |
download | samba-9331714787f663a1b46447598a7edf0ebff7d355.tar.gz samba-9331714787f663a1b46447598a7edf0ebff7d355.tar.bz2 samba-9331714787f663a1b46447598a7edf0ebff7d355.zip |
r8073: a successful rpc call from ejs!
the ejs_echo.c code is the stuff that needs to be auto-generated by
pidl. It only does echo_AddOne so far.
We also need a table for registering these calls. The code is
hard-wired for echo_AddOne for now.
(This used to be commit b1ea58ddc482c373783d16331dd07378010ba39a)
Diffstat (limited to 'source4/scripting/ejs/mprutil.c')
-rw-r--r-- | source4/scripting/ejs/mprutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/ejs/mprutil.c b/source4/scripting/ejs/mprutil.c index cd5ec3b5cd..1c640a5d5e 100644 --- a/source4/scripting/ejs/mprutil.c +++ b/source4/scripting/ejs/mprutil.c @@ -218,9 +218,9 @@ struct MprVar mprWERROR(WERROR status) /* set a pointer in a existing MprVar */ -void mprSetPtr(struct MprVar *v, const char *propname, void *p) +void mprSetPtr(struct MprVar *v, const char *propname, const void *p) { - struct MprVar val = mprCreatePtrVar(p, talloc_get_name(p)); + struct MprVar val = mprCreatePtrVar(discard_const(p), NULL); mprCreateProperty(v, propname, &val); } |