Re: [chrony-dev] [PATCH v2] main: add -X to fall back if time is not adjustable |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] [PATCH v2] main: add -X to fall back if time is not adjustable
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Tue, 13 Mar 2018 17:53:25 +1300
- Cc: Christian Ehrhardt <christian.ehrhardt@xxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a1-4; h=Feedback-ID:X-Smtpcorp-Track:To:Message-Id:Date: From:Subject:Reply-To:Sender:List-Unsubscribe; bh=vN+TwTk+88OIz8bUo/pH2yJMNpGVhmVz/UqtEP6k1cY=; b=RhAe/grkjOKFwJbS484cTRvYIm Ler1sQJhYGiBn3REZ6Ah4zdiLHC6wo2chOc3CGmHpCwdtzRBRHtwtgbM0GVgiWRH5qbXycQNLSbTM jTHDnQ9ZRwGTjiCa0tN+bbZs6glTVg98jemxop6SBKtqyeXMqM8dnb2MTLxRXkvfHjB+ndP5c/u71 f8tlZiWkA5kSaOOF5btr50A2W5vqWw1+inl+vNXAzpH6znN7fphot0A9PT95Sed4KCphb0Q4nFEPt em+AgbZk6IiISNJxQyRym1oGyRPwsy8NpsSPNBhqlTxYKBJtW7FKp5XbaDh00/tZP/AXj4E+rtZHT qEQcoGkg==;
- Feedback-id: 149811m:149811acx33YQ:149811sdnUiPdsEA:SMTPCORP
> On 13/03/2018, at 5:46 PM, Christian Ehrhardt <christian.ehrhardt@xxxxxxxxxxxxx> wrote:
>
> diff --git a/sys_macosx.c b/sys_macosx.c
> index 00ce302..01a054a 100644
> --- a/sys_macosx.c
> +++ b/sys_macosx.c
> @@ -479,7 +479,7 @@ test_adjtime()
>
> /* ================================================== */
>
> -void
> +int
> SYS_MacOSX_Initialise(void)
> {
> #ifdef HAVE_MACOS_SYS_TIMEX
> @@ -492,10 +492,11 @@ SYS_MacOSX_Initialise(void)
> } else {
> SYS_NetBSD_Initialise();
maybe it would be better to have:
return SYS_NetBSD_Initialise();
> }
> - return;
> + return 1;
> }
> #endif
> legacy_MacOSX_Initialise();
> + return 1;
> }
>
> /* ================================================== */
> diff --git a/sys_macosx.h b/sys_macosx.h
> index 5555616..748df8a 100644
> --- a/sys_macosx.h
> +++ b/sys_macosx.h
> @@ -32,7 +32,7 @@
>
> void SYS_MacOSX_SetScheduler(int SchedPriority);
> void SYS_MacOSX_DropRoot(uid_t uid, gid_t gid);
> -void SYS_MacOSX_Initialise(void);
> +int SYS_MacOSX_Initialise(void);
> void SYS_MacOSX_Finalise(void);
>
> #endif
> --
> To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
> For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
> Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.
>
Bryan Christianson
bryan@xxxxxxxxxxxxx
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.