From: Brett Gordon Date: Sun, 28 Aug 2016 19:28:28 +0000 (-0400) Subject: stime syscall: ptr params reversed, also finish prototype comment X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e90bb17d4652486a0d7bc273affa3f3c7858c841;p=FUZIX.git stime syscall: ptr params reversed, also finish prototype comment --- diff --git a/Kernel/syscall_proc.c b/Kernel/syscall_proc.c index 025d301f..7b8970b0 100644 --- a/Kernel/syscall_proc.c +++ b/Kernel/syscall_proc.c @@ -158,8 +158,9 @@ arg_t _time(void) /******************************************* -stime (tvec) Function 28 +stime (tvec, type) Function 28 time_t *tvec; +uint16_t type; ============================================ Set Clock Time (Currently unimplemented). When active, must be SuperUser to Set Time. @@ -174,7 +175,7 @@ arg_t _stime(void) udata.u_error = EINVAL; return -1; } - if (uget(&t, tvec, sizeof(t)) || esuper()) + if (uget(tvec, &t, sizeof(t)) || esuper()) return -1; wrtime(&t); return (-1);