glibc/sysdeps/mach
Zack Weinberg 1baae4aa6f
Don't use the argument to time.
It doesn't make sense to remove all the internal uses of time.
It's still a standard ISO C function, and its callers don't need
sub-second resolution and would be unnecessarily complicated if
they had to declare a struct timespec instead of just a time_t.
However, a handful of places were using the vestigial "result"
argument instead of the return value, which is slightly less
efficient and also looks strange.  Correct this.

	* misc/syslog.c (__vsyslog_internal)
	* time/getdate.c (__getdate_r)
	* time/tst_wcsftime.c (main):
	Use return value of time, not its argument.

	* string/strfry.c (strfry)
	* sysdeps/mach/sleep.c (__sleep):
	Remove unnecessary casts of NULL in calls to time.
2019-08-21 08:26:36 -04:00
..
htl Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
hurd Make totalorder and totalordermag functions take pointer arguments. 2019-08-15 15:18:34 +00:00
i386 Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
include hurd: Fix installed-headers tests 2018-07-20 03:28:08 +02:00
sys Installed-header hygiene (BZ#20366): obsolete BSD u_* types. 2016-09-23 08:43:56 -04:00
_strerror.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
adjtime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
configure hurd: Build stubs for new gnumach.defs 2018-01-28 19:38:29 +01:00
configure.ac hurd: Build stubs for new gnumach.defs 2018-01-28 19:38:29 +01:00
getloadavg.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
getpagesize.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
getsysstats.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gettimeofday.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
libc-lock.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
libmachuser.abilist hurd: add base abilist files 2018-01-28 17:26:35 +01:00
Makefile Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mprotect.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
msync.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
munmap.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
nanosleep.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
pagecopy.h Break lines before not after operators, batch 4. 2019-03-07 20:20:25 +00:00
readonly-area.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sched_yield.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sleep.c Don't use the argument to time. 2019-08-21 08:26:36 -04:00
strerror_l.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
Subdirs * Makefile (subdir-target-args): New variable. 2006-02-28 07:11:04 +00:00
sysdep.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
thread_state.h Break lines before not after operators, batch 4. 2019-03-07 20:20:25 +00:00
usleep.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
xpg-strerror.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00