diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-04-28 18:33:25 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-04-28 18:33:25 +0000 |
commit | 81256ecbb977351b4d6a992df17be4b107071935 (patch) | |
tree | b299293b39b94c7c4fb9eb8f7ffc179aad46a03d /source3/rpc_server/srv_echo.c | |
parent | 023cd5ff70083526423320470c41eefef1b8f93f (diff) | |
download | samba-81256ecbb977351b4d6a992df17be4b107071935.tar.gz samba-81256ecbb977351b4d6a992df17be4b107071935.tar.bz2 samba-81256ecbb977351b4d6a992df17be4b107071935.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 f4576757d1d52a8f1b96894c869bb76450003fd1)
Diffstat (limited to 'source3/rpc_server/srv_echo.c')
-rw-r--r-- | source3/rpc_server/srv_echo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_echo.c b/source3/rpc_server/srv_echo.c index dcd8dd0c53..166b6e939d 100644 --- a/source3/rpc_server/srv_echo.c +++ b/source3/rpc_server/srv_echo.c @@ -120,7 +120,7 @@ static BOOL api_sink_data(pipes_struct *p) \pipe\rpcecho commands ********************************************************************/ -int rpc_echo_init(void) +NTSTATUS rpc_echo_init(void) { struct api_struct api_echo_cmds[] = { {"ADD_ONE", ECHO_ADD_ONE, api_add_one }, @@ -129,7 +129,7 @@ int rpc_echo_init(void) {"SINK_DATA", ECHO_SINK_DATA, api_sink_data }, }; - return rpc_pipe_register_commands( + return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, "rpcecho", "rpcecho", api_echo_cmds, sizeof(api_echo_cmds) / sizeof(struct api_struct)); } |