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 ]



> 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.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/