diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-04-28 17:48:48 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-04-28 17:48:48 +0000 |
commit | 17a3acafa89bfc6090b0767d05a00a7505003fcc (patch) | |
tree | 8c1ddf10d38ef69a9e72a009d6dc890e5bbe901c /source3/rpc_server/srv_reg.c | |
parent | cff01c538f3647f5169a8e5a3ab4b77ad0cebce5 (diff) | |
download | samba-17a3acafa89bfc6090b0767d05a00a7505003fcc.tar.gz samba-17a3acafa89bfc6090b0767d05a00a7505003fcc.tar.bz2 samba-17a3acafa89bfc6090b0767d05a00a7505003fcc.zip |
Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
(This used to be commit bc4b51bcb2daa7271c884cb83bf8bdba6d3a9b6d)
Diffstat (limited to 'source3/rpc_server/srv_reg.c')
-rw-r--r-- | source3/rpc_server/srv_reg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_reg.c b/source3/rpc_server/srv_reg.c index f72d8e4f29..43bb1ad86a 100644 --- a/source3/rpc_server/srv_reg.c +++ b/source3/rpc_server/srv_reg.c @@ -373,7 +373,7 @@ static BOOL api_reg_save_key(pipes_struct *p) array of \PIPE\reg operations ********************************************************************/ -int rpc_reg_init(void) +NTSTATUS rpc_reg_init(void) { static struct api_struct api_reg_cmds[] = { @@ -391,6 +391,6 @@ int rpc_reg_init(void) { "REG_UNKNOWN_1A" , REG_UNKNOWN_1A , api_reg_unknown_1a }, { "REG_SAVE_KEY" , REG_SAVE_KEY , api_reg_save_key } }; - return rpc_pipe_register_commands("winreg", "winreg", api_reg_cmds, + return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, "winreg", "winreg", api_reg_cmds, sizeof(api_reg_cmds) / sizeof(struct api_struct)); } |