<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Eric S. Raymond pushed to branch master at <a href="https://gitlab.com/NTPsec/ntpsec">NTPsec / ntpsec</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.com/NTPsec/ntpsec/commit/891bc962be6189a4fb9b9949a800e96a7bf7120c">891bc962</a></strong>
<div>
<span>by Eric S. Raymond</span>
<i>at 2015-11-23T07:42:17Z</i>
</div>
<pre class='commit-message'>Address Gitlab issue #8: Clang warnings on OSX 10.11.2.</pre>
</li>
</ul>
<h4>5 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
ntpd/ntp_loopfilter.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
ntpd/ntp_sandbox.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-2'>
ntpd/ntp_timer.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-3'>
ntpfrob/tickadj.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-4'>
tests/libntp/tstotv.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/891bc962be6189a4fb9b9949a800e96a7bf7120c#diff-0'>
<strong>
ntpd/ntp_loopfilter.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/ntpd/ntp_loopfilter.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/ntpd/ntp_loopfilter.c
</span><span style="color: #aaaaaa">@@ -180,6 +180,7 @@ static sigjmp_buf env;            /* environment var. for pll_trap() */
</span> #endif /* SIGSYS */
 #endif /* HAVE_KERNEL_PLL */
 
<span style="color: #000000;background-color: #ddffdd">+#ifdef HAVE_KERNEL_PLL
</span> static void
 sync_status(const char *what, int ostatus, int nstatus)
 {
<span style="color: #aaaaaa">@@ -189,6 +190,7 @@ sync_status(const char *what, int ostatus, int nstatus)
</span>   snprintf(tbuf, sizeof(tbuf), "%s status: %s -> %s", what, obuf, nbuf);
        report_event(EVNT_KERN, NULL, tbuf);
 }
<span style="color: #000000;background-color: #ddffdd">+#endif /* HAVE_KERNEL_PLL */
</span> 
 /*
  * file_name - return pointer to non-relative portion of this C file pathname
<span style="color: #aaaaaa">@@ -440,7 +442,9 @@ local_clock(
</span> {
        int     rval;           /* return code */
        int     osys_poll;      /* old system poll */
<span style="color: #000000;background-color: #ddffdd">+#ifdef HAVE_KERNEL_PLL
</span>   int     ntp_adj_ret;    /* returned by ntp_adjtime */
<span style="color: #000000;background-color: #ddffdd">+#endif /* HAVE_KERNEL_PLL */
</span>   double  mu;             /* interval since last update */
        double  clock_frequency; /* clock frequency */
        double  dtemp, etemp;   /* double temps */
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/891bc962be6189a4fb9b9949a800e96a7bf7120c#diff-1'>
<strong>
ntpd/ntp_sandbox.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/ntpd/ntp_sandbox.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/ntpd/ntp_sandbox.c
</span><span style="color: #aaaaaa">@@ -54,6 +54,9 @@ bool sandbox(const bool droproot,
</span>        const char *chrootdir,
             bool want_dynamic_interface_tracking)
 {
<span style="color: #000000;background-color: #ddffdd">+#ifndef HAVE_LINUX_CAPABILITY
+       UNUSED_ARG(want_dynamic_interface_tracking);
+#endif /* HAVE_LINUX_CAPABILITY */
</span>   bool nonroot = false;
 # ifdef ENABLE_DROPROOT
        if (droproot) {
</code></pre>

<br>
</li>
<li id='diff-2'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/891bc962be6189a4fb9b9949a800e96a7bf7120c#diff-2'>
<strong>
ntpd/ntp_timer.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/ntpd/ntp_timer.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/ntpd/ntp_timer.c
</span><span style="color: #aaaaaa">@@ -584,7 +584,7 @@ check_leapsec(
</span>                   const char *leapmsg = NULL;
                        if (lsdata.warped < 0) {
                                if (clock_max_back > 0.0 &&
<span style="color: #000000;background-color: #ffdddd">-                                    clock_max_back < fabs(lsdata.warped)) {
</span><span style="color: #000000;background-color: #ddffdd">+                               clock_max_back < abs(lsdata.warped)) {
</span>                                   step_systime(lsdata.warped);
                                        leapmsg = leapmsg_p_step;
                                } else {
<span style="color: #aaaaaa">@@ -592,7 +592,7 @@ check_leapsec(
</span>                           }
                        } else  if (lsdata.warped > 0) {
                                if (clock_max_fwd > 0.0 &&
<span style="color: #000000;background-color: #ffdddd">-                                    clock_max_fwd < fabs(lsdata.warped)) {
</span><span style="color: #000000;background-color: #ddffdd">+                               clock_max_fwd < abs(lsdata.warped)) {
</span>                                   step_systime(lsdata.warped);
                                        leapmsg = leapmsg_n_step;
                                } else {
</code></pre>

<br>
</li>
<li id='diff-3'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/891bc962be6189a4fb9b9949a800e96a7bf7120c#diff-3'>
<strong>
ntpfrob/tickadj.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/ntpfrob/tickadj.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/ntpfrob/tickadj.c
</span><span style="color: #aaaaaa">@@ -31,6 +31,7 @@ void tickadj(const iomode mode, const int newtick)
</span>   UNUSED_ARG(mode);
 
 #ifndef HAVE_ADJTIMEX
<span style="color: #000000;background-color: #ddffdd">+        UNUSED_ARG(newtick);
</span>   fputs("ntpfrob: \n", stderr);
        exit(1);
 #else
</code></pre>

<br>
</li>
<li id='diff-4'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/891bc962be6189a4fb9b9949a800e96a7bf7120c#diff-4'>
<strong>
tests/libntp/tstotv.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/tests/libntp/tstotv.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/tests/libntp/tstotv.c
</span><span style="color: #aaaaaa">@@ -19,7 +19,10 @@ static bool IsEqual(const struct timeval *expected, const struct timeval *actual
</span>           // Success
                return true;
        } else {
<span style="color: #000000;background-color: #ffdddd">-                printf("Expected: %ld.%ld but was %ld.%ld\n", expected->tv_sec, expected->tv_usec, actual->tv_sec, actual->tv_usec);
</span><span style="color: #000000;background-color: #ddffdd">+           /* long cast iscrequired on Darwin */
+               printf("Expected: %ld.%ld but was %ld.%ld\n",
+                      expected->tv_sec, expected->tv_usec,
+                      actual->tv_sec, (long)actual->tv_usec);
</span>           return false;
        }
 }
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/891bc962be6189a4fb9b9949a800e96a7bf7120c">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.com/NTPsec/ntpsec/commit/891bc962be6189a4fb9b9949a800e96a7bf7120c"}}</script>
</p>
</div>
</body>
</html>