From fdc0809b41c7abba1fcdaa86d23868c86fa9ff71 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 19 May 2007 06:49:01 +0000 Subject: r23011: initialisation functions must return NTSTATUS, otherwise we get bus errors on platforms like sparc. This is why sun1 died during provision. (This used to be commit ad6a672ec3cf077d419458e2f07ebe6d9a2b94b2) --- source4/scripting/ejs/ejsnet/net_ctx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/scripting/ejs/ejsnet/net_ctx.c') diff --git a/source4/scripting/ejs/ejsnet/net_ctx.c b/source4/scripting/ejs/ejsnet/net_ctx.c index 9a5e6bb3cc..1c70dc107f 100644 --- a/source4/scripting/ejs/ejsnet/net_ctx.c +++ b/source4/scripting/ejs/ejsnet/net_ctx.c @@ -222,7 +222,8 @@ static int ejs_net_samsync_ldb(MprVarHandle eid, int argc, struct MprVar **argv) } -void smb_setup_ejs_net(void) +NTSTATUS smb_setup_ejs_net(void) { ejsDefineCFunction(-1, "NetContext", ejs_net_context, NULL, MPR_VAR_SCRIPT_HANDLE); + return NT_STATUS_OK; } -- cgit