aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-11-27 09:50:45 +0000
committerRon Yorston <rmy@pobox.com>2018-11-27 10:49:09 +0000
commit5a38b2b6e34c51b8c419e57822b195e3156b756f (patch)
tree4bb829a3b759325bfbbeb5cbb09434fc1af16996 /win32
parente8fcc446e5475ed4ae0bae6859f95603a0920fc0 (diff)
downloadbusybox-w32-5a38b2b6e34c51b8c419e57822b195e3156b756f.tar.gz
busybox-w32-5a38b2b6e34c51b8c419e57822b195e3156b756f.tar.bz2
busybox-w32-5a38b2b6e34c51b8c419e57822b195e3156b756f.zip
win32: save a few bytes in fake times(2) implementation
Diffstat (limited to 'win32')
-rw-r--r--win32/mingw.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/win32/mingw.c b/win32/mingw.c
index b75565fc2..7568f081d 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -858,11 +858,7 @@ long sysconf(int name)
858 858
859clock_t times(struct tms *buf) 859clock_t times(struct tms *buf)
860{ 860{
861 buf->tms_utime = 0; 861 memset(buf, 0, sizeof(*buf));
862 buf->tms_stime = 0;
863 buf->tms_cutime = 0;
864 buf->tms_cstime = 0;
865
866 return 0; 862 return 0;
867} 863}
868 864