summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-02-20 22:26:28 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-02-20 22:26:28 +0000
commit8d8a8c9633ea04d269d70b1fa8f4393cc73f7bbd (patch)
tree3bc7add2e13dac3e4e6a671efe524afaee4e6e44 /source3/rpc_server
parent1009ef3e37c82682e9c2c4c63bc7407420f20af8 (diff)
downloadsamba-8d8a8c9633ea04d269d70b1fa8f4393cc73f7bbd.tar.gz
samba-8d8a8c9633ea04d269d70b1fa8f4393cc73f7bbd.tar.bz2
samba-8d8a8c9633ea04d269d70b1fa8f4393cc73f7bbd.zip
Make init_module() and thus smb_load_module() return an int.
modules/developer.c: init_module() should return an int (This used to be commit 7f59703550378ff2333e3c851bf1a77037510abd)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_pipe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index 0b8b7b229a..f6deac68f8 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/rpc_server/srv_pipe.c
@@ -794,10 +794,10 @@ int rpc_pipe_register_commands(const char *clnt, const char *srv, const struct a
/*******************************************************************
Register commands to an RPC pipe
*******************************************************************/
-NTSTATUS rpc_load_module(const char *module)
+int rpc_load_module(const char *module)
{
pstring full_path;
- NTSTATUS status;
+ int status;
pstrcpy(full_path, lib_path("rpc"));
pstrcat(full_path, "/librpc_");
@@ -805,7 +805,7 @@ NTSTATUS rpc_load_module(const char *module)
pstrcat(full_path, ".");
pstrcat(full_path, shlib_ext());
- if (!NT_STATUS_IS_OK(status = smb_load_module(full_path))) {
+ if (!(status = smb_load_module(full_path))) {
DEBUG(0, ("Could not load requested pipe %s as %s\n",
module, full_path));
}
@@ -858,7 +858,7 @@ BOOL api_pipe_bind_req(pipes_struct *p, prs_struct *rpc_in_p)
}
}
- if (!api_fd_commands[i].name && !NT_STATUS_IS_OK(rpc_load_module(p->name))) {
+ if (!api_fd_commands[i].name && !rpc_load_module(p->name)) {
DEBUG(3,("api_pipe_bind_req: Unknown pipe name %s in bind request.\n",
p->name ));
if(!setup_bind_nak(p))