r15731: module init functions should return NTSTATUS, not void
[ira/wip.git] / source4 / scripting / ejs / smbcalls_sys.c
index b8382db296a9d9fcd3f53cdedc6f5956383cfb8f..860002e1d785e599d2ef165658c365963d479f28 100644 (file)
@@ -351,7 +351,8 @@ static int ejs_sys_init(MprVarHandle eid, int argc, struct MprVar **argv)
 /*
   setup C functions that be called from ejs
 */
-void smb_setup_ejs_system(void)
+NTSTATUS smb_setup_ejs_system(void)
 {
        ejsDefineCFunction(-1, "sys_init", ejs_sys_init, NULL, MPR_VAR_SCRIPT_HANDLE);
+       return NT_STATUS_OK;
 }