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

> On 20/08/2016, at 3:38 AM, Miroslav Lichvar <mlich...@redhat.com> 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
br...@whatroute.net




--
To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" 
in the subject.
For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the 
subject.
Trouble?  Email listmas...@chrony.tuxfamily.org.

Reply via email to