1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

r11171: fix the build

metze
(This used to be commit 0d948cf430f34757a17170cdd26ac6b87341a75f)
This commit is contained in:
Stefan Metzmacher 2005-10-19 06:09:14 +00:00 committed by Gerald (Jerry) Carter
parent 64b0c02e8b
commit e627a90362

View File

@ -72,12 +72,13 @@ static int ejs_sys_nttime(MprVarHandle eid, int argc, struct MprVar **argv)
static int ejs_sys_unix2nttime(MprVarHandle eid, int argc, struct MprVar **argv)
{
NTTIME nt;
struct MprVar v;
if (argc != 1 || !mprVarIsNumber(argv[0]->type)) {
ejsSetErrorMsg(eid, "sys_unix2nttime invalid arguments");
return -1;
}
unix_to_nt_time(&nt, mprVarToNumber(argv[0]));
struct MprVar v = mprCreateNumberVar(nt);
v = mprCreateNumberVar(nt);
mpr_Return(eid, v);
return 0;
}