buglet - Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 2.4-41-g7a1ebc3

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


It’s minor but will affect all systems that don’t have clock_gettime

> On 20/08/2016, at 3:38 AM, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
> 
> So, does the new code build and work for you? I was a bit worried I'd
> break it on macOS. :)
> 

number9:chrony-git bryan$ git diff
diff --git a/local.c b/local.c
index c456f83..82f8fb0 100644
--- a/local.c
+++ b/local.c
@@ -361,7 +361,7 @@ LCL_ReadRawTime(struct timespec *ts)
   struct timeval tv;
 
   if (gettimeofday(&tv, NULL) < 0)
-    LOG_FATAL(LOGF_Local, "gettimeofday() failed : %s", stderror(errno));
+    LOG_FATAL(LOGF_Local, "gettimeofday() failed : %s", strerror(errno));
 
   UTI_TimevalToTimespec(&tv, ts);
 #endif

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/