|
From: | Pino Toscano |
Subject: | Re: RFC: [PATCH] Enable olddelta to be NULL in adjtime(3) |
Date: | Tue, 30 Aug 2016 14:45:39 +0200 |
User-agent: | KMail/5.2.3 (Linux/4.6.6-300.fc24.x86_64; KDE/5.25.0; x86_64; ; ) |
On Tuesday, 30 August 2016 14:32:32 CEST Svante Signell wrote: > The glibc patch sysdeps_mach_hurd_adjtime.c.diff use a dummy struct timeval to > avoid calling ___host_adjust_time() in _adjtime() with a NULL third argument. > Smarter solutions can probably be found, comments are welcome. You don't need to duplicate the whole __host_adjust_time call: struct timeval dummy; .. if (olddelta == NULL) olddelta = &dummy; should be enough. -- Pino Toscano
[Prev in Thread] | Current Thread | [Next in Thread] |