From hurd-bug Tue Aug 30 12:45:39 2016 From: Pino Toscano Date: Tue, 30 Aug 2016 12:45:39 +0000 To: hurd-bug Subject: Re: RFC: [PATCH] Enable olddelta to be NULL in adjtime(3) Message-Id: <1909634.hQIzNno7c3 () thyrus ! usersys ! redhat ! com> X-MARC-Message: https://marc.info/?l=hurd-bug&m=147256134216297 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