mirror of
https://github.com/samba-team/samba.git
synced 2025-10-28 03:33:13 +03:00
r25027: Fix more warnings.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
abe8349f9b
commit
5085c53fcf
@@ -78,7 +78,7 @@ static int ejs_net_context(MprVarHandle eid, int argc, struct MprVar **argv)
|
||||
get credential values from credentials object
|
||||
*/
|
||||
mprCreds = *(argv[0]);
|
||||
creds = mprGetPtr(&mprCreds, "creds");
|
||||
creds = (struct cli_credentials *)mprGetPtr(&mprCreds, "creds");
|
||||
if (creds == NULL) {
|
||||
ejsSetErrorMsg(eid, "invalid credentials parameter");
|
||||
talloc_free(ctx);
|
||||
@@ -122,7 +122,7 @@ static int ejs_net_join_domain(MprVarHandle eid, int argc, struct MprVar **argv)
|
||||
struct libnet_context *ctx;
|
||||
struct libnet_Join *join;
|
||||
NTSTATUS status;
|
||||
ctx = mprGetThisPtr(eid, "ctx");
|
||||
ctx = (struct libnet_context *)mprGetThisPtr(eid, "ctx");
|
||||
mem_ctx = talloc_new(mprMemCtx());
|
||||
|
||||
join = talloc(mem_ctx, struct libnet_Join);
|
||||
@@ -181,7 +181,7 @@ static int ejs_net_samsync_ldb(MprVarHandle eid, int argc, struct MprVar **argv)
|
||||
struct libnet_context *ctx;
|
||||
struct libnet_samsync_ldb *samsync;
|
||||
NTSTATUS status;
|
||||
ctx = mprGetThisPtr(eid, "ctx");
|
||||
ctx = (struct libnet_context *)mprGetThisPtr(eid, "ctx");
|
||||
mem_ctx = talloc_new(mprMemCtx());
|
||||
|
||||
samsync = talloc(mem_ctx, struct libnet_samsync_ldb);
|
||||
|
||||
@@ -45,7 +45,7 @@ int ejs_net_userman(MprVarHandle eid, int argc, struct MprVar **argv)
|
||||
struct MprVar obj;
|
||||
|
||||
/* libnet context */
|
||||
ctx = mprGetThisPtr(eid, "ctx");
|
||||
ctx = (struct libnet_context *)mprGetThisPtr(eid, "ctx");
|
||||
if (ctx == NULL) {
|
||||
ejsSetErrorMsg(eid, "ctx property returns null pointer");
|
||||
return 0;
|
||||
@@ -128,14 +128,14 @@ static int ejs_net_createuser(MprVarHandle eid, int argc, char **argv)
|
||||
}
|
||||
|
||||
/* libnet context */
|
||||
ctx = mprGetThisPtr(eid, "ctx");
|
||||
ctx = (struct libnet_context *)mprGetThisPtr(eid, "ctx");
|
||||
if (ctx == NULL) {
|
||||
ejsSetErrorMsg(eid, "ctx property returns null pointer");
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* domain where the account is to be created */
|
||||
userman_domain = mprGetThisPtr(eid, "domain");
|
||||
userman_domain = (const char *)mprGetThisPtr(eid, "domain");
|
||||
if (userman_domain == NULL) {
|
||||
ejsSetErrorMsg(eid, "domain property returns null pointer");
|
||||
goto done;
|
||||
@@ -197,7 +197,7 @@ static int ejs_net_deleteuser(MprVarHandle eid, int argc, char **argv)
|
||||
}
|
||||
|
||||
/* domain where the account is to be deleted */
|
||||
userman_domain = mprGetThisPtr(eid, "domain");
|
||||
userman_domain = (struct libnet_context *)mprGetThisPtr(eid, "domain");
|
||||
if (!userman_domain) {
|
||||
ejsSetErrorMsg(eid, "domain property returns null pointer");
|
||||
goto done;
|
||||
@@ -253,14 +253,14 @@ static int ejs_net_userinfo(MprVarHandle eid, int argc, char **argv)
|
||||
}
|
||||
|
||||
/* libnet context */
|
||||
ctx = mprGetThisPtr(eid, "ctx");
|
||||
ctx = (struct libnet_context *)mprGetThisPtr(eid, "ctx");
|
||||
if (ctx == NULL) {
|
||||
ejsSetErrorMsg(eid, "ctx property returns null pointer");
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* domain where the user account is to be queried */
|
||||
userman_domain = mprGetThisPtr(eid, "domain");
|
||||
userman_domain = (struct libnet_context *)mprGetThisPtr(eid, "domain");
|
||||
if (userman_domain == NULL) {
|
||||
ejsSetErrorMsg(eid, "domain property returns null pointer");
|
||||
return -1;
|
||||
@@ -331,7 +331,7 @@ static int ejs_net_userlist(MprVarHandle eid, int argc, struct MprVar **argv)
|
||||
}
|
||||
|
||||
/* libnet context */
|
||||
ctx = mprGetThisPtr(eid, "ctx");
|
||||
ctx = (struct libnet_context *)mprGetThisPtr(eid, "ctx");
|
||||
if (ctx == NULL) {
|
||||
ejsSetErrorMsg(eid, "ctx property returns null pointer");
|
||||
goto done;
|
||||
|
||||
Reference in New Issue
Block a user