summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/sysdeps/linux/common/time.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/time.c b/libc/sysdeps/linux/common/time.c
index e13b44f4d..cd87fb331 100644
--- a/libc/sysdeps/linux/common/time.c
+++ b/libc/sysdeps/linux/common/time.c
@@ -9,12 +9,11 @@
#include <sys/syscall.h>
#include <time.h>
-#include <sys/time.h>
-
#ifdef __NR_time
_syscall_noerr1(time_t, time, time_t *, t)
#else
+# include <sys/time.h>
time_t time(time_t * t)
{
time_t result;
@@ -25,9 +24,8 @@ time_t time(time_t * t)
*/
gettimeofday(&tv, NULL);
result = (time_t) tv.tv_sec;
- if (t != NULL) {
+ if (t != NULL)
*t = result;
- }
return result;
}
#endif