some coverity fixes.
[minix.git] / lib / libc / sys-minix / settimeofday.c
blob2e47e9eedf4b82b7c95f4e6055944bf04ee236a0
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
5 #include <sys/time.h>
6 #include <time.h>
8 int settimeofday(const struct timeval *tp, const void *tzp)
10 /* Use intermediate variable because stime param is not const */
11 time_t sec = tp->tv_sec;
13 /* Ignore time zones */
14 return stime(&sec);