From ad6a672ec3cf077d419458e2f07ebe6d9a2b94b2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 19 May 2007 06:49:01 +0000 Subject: [PATCH] r23011: initialisation functions must return NTSTATUS, otherwise we get bus errors on platforms like sparc. This is why sun1 died during provision. --- source/scripting/ejs/ejsnet/net_ctx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/scripting/ejs/ejsnet/net_ctx.c b/source/scripting/ejs/ejsnet/net_ctx.c index 9a5e6bb3cc6..1c70dc107f4 100644 --- a/source/scripting/ejs/ejsnet/net_ctx.c +++ b/source/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; } -- 2.11.4.GIT