<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/aa451fd8998042a6b0c2668eae63f435939c4860">aa451fd8</a></strong>
<div>
<span>by Eric S. Raymond</span>
<i>at 2015-12-08T18:26:09Z</i>
</div>
<pre class='commit-message'>ntp_set_tod() was always called with a second arg of null...

...so eliminate that argument.</pre>
</li>
</ul>
<h4>4 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
include/ntp_machine.h
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
libntp/machines.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-2'>
libntp/systime.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-3'>
ports/winnt/libntp/SetSystemTime.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/aa451fd8998042a6b0c2668eae63f435939c4860#diff-0'>
<strong>
include/ntp_machine.h
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/include/ntp_machine.h
</span><span style="color: #000000;background-color: #ddffdd">+++ b/include/ntp_machine.h
</span><span style="color: #aaaaaa">@@ -15,7 +15,7 @@
</span> 
 #include "ntp_proto.h"
 
<span style="color: #000000;background-color: #ffdddd">-int ntp_set_tod (struct timespec *tvs, void *tzp);
</span><span style="color: #000000;background-color: #ddffdd">+int ntp_set_tod (struct timespec *tvs);
</span> 
 #ifdef NO_MAIN_ALLOWED
 /* we have no main routines so lets make a plan */
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/aa451fd8998042a6b0c2668eae63f435939c4860#diff-1'>
<strong>
libntp/machines.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/libntp/machines.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/libntp/machines.c
</span><span style="color: #aaaaaa">@@ -64,8 +64,7 @@ pset_tod_using      set_tod_using = NULL;
</span> 
 int
 ntp_set_tod(
<span style="color: #000000;background-color: #ffdddd">-        struct timespec *tvs,
-       void *tzp
</span><span style="color: #000000;background-color: #ddffdd">+   struct timespec *tvs
</span>   )
 {
        static int      tod;
<span style="color: #aaaaaa">@@ -101,7 +100,7 @@ ntp_set_tod(
</span> 
                adjtv.tv_sec = tvs->tv_sec;
                adjtv.tv_usec = (tvs->tv_nsec + 500) / 1000;
<span style="color: #000000;background-color: #ffdddd">-                rc = settimeofday(&adjtv, tzp);
</span><span style="color: #000000;background-color: #ddffdd">+           rc = settimeofday(&adjtv, NULL);
</span>           saved_errno = errno;
                TRACE(1, ("ntp_set_tod: settimeofday: %d %m\n", rc));
                if (!tod && !rc)
</code></pre>

<br>
</li>
<li id='diff-2'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/aa451fd8998042a6b0c2668eae63f435939c4860#diff-2'>
<strong>
libntp/systime.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/libntp/systime.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/libntp/systime.c
</span><span style="color: #aaaaaa">@@ -460,7 +460,7 @@ step_systime(
</span>   timets = lfp_stamp_to_tspec(fp_sys, &pivot);
 
        /* now set new system time */
<span style="color: #000000;background-color: #ffdddd">-        if (ntp_set_tod(&timets, NULL) != 0) {
</span><span style="color: #000000;background-color: #ddffdd">+   if (ntp_set_tod(&timets) != 0) {
</span>           msyslog(LOG_ERR, "step-systime: %m");
                return false;
        }
</code></pre>

<br>
</li>
<li id='diff-3'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/aa451fd8998042a6b0c2668eae63f435939c4860#diff-3'>
<strong>
ports/winnt/libntp/SetSystemTime.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/ports/winnt/libntp/SetSystemTime.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/ports/winnt/libntp/SetSystemTime.c
</span><span style="color: #aaaaaa">@@ -9,8 +9,7 @@ pset_tod_using                set_tod_using = NULL;
</span> 
 int
 ntp_set_tod(
<span style="color: #000000;background-color: #ffdddd">-        struct timespec *tp,
-       void *tzp
</span><span style="color: #000000;background-color: #ddffdd">+   struct timespec *tp
</span>   )
 {
        SYSTEMTIME st;
<span style="color: #aaaaaa">@@ -19,8 +18,6 @@ ntp_set_tod(
</span>           ULONGLONG ull;
        } t;
 
<span style="color: #000000;background-color: #ffdddd">-        UNUSED_ARG(tzp);
-
</span>   t.ull = FILETIME_1970 +
                (ULONGLONG)tv->tv_sec * 10 * 1000 * 1000 +
                (ULONGLONG)tv->tv_nsec / 100;
</code></pre>

<br>
</li>

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

<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/aa451fd8998042a6b0c2668eae63f435939c4860">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/aa451fd8998042a6b0c2668eae63f435939c4860"}}</script>
</p>
</div>
</body>
</html>