<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/914583da618b4ade4c64738a459f054417c504bd">914583da</a></strong>
<div>
<span>by Matt Selsky</span>
<i>at 2016-01-23T12:28:34-05:00</i>
</div>
<pre class='commit-message'>Use C99 format string macros.</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
ntpd/ntp_intercept.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/914583da618b4ade4c64738a459f054417c504bd#diff-0'>
<strong>
ntpd/ntp_intercept.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/ntpd/ntp_intercept.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/ntpd/ntp_intercept.c
</span><span style="color: #aaaaaa">@@ -90,6 +90,7 @@ Reference-clock events are not yet intercepted.
</span> #include <libgen.h>
 #include <sys/socket.h>
 #include <netdb.h>
<span style="color: #000000;background-color: #ddffdd">+#include <inttypes.h>
</span> 
 #include "ntpd.h"
 #include "ntp_io.h"
<span style="color: #aaaaaa">@@ -686,11 +687,7 @@ static char *lfpdump(l_fp *fp)
</span>     np <<= FRACTION_PREC;
     np |= fp->l_uf;
 
<span style="color: #000000;background-color: #ffdddd">-#if SIZEOF_LONG_LONG == SIZEOF_LONG
-    snprintf(buf, LIB_BUFLENGTH, "%lx", np);
-#else
-    snprintf(buf, LIB_BUFLENGTH, "%llx", np);
-#endif
</span><span style="color: #000000;background-color: #ddffdd">+    snprintf(buf, LIB_BUFLENGTH, "%" PRIu64, np);
</span> 
     return buf;
 }
<span style="color: #aaaaaa">@@ -699,11 +696,7 @@ static void lfpload(char *str, l_fp *fp)
</span> {
     uint64_t   np;
 
<span style="color: #000000;background-color: #ffdddd">-#if SIZEOF_LONG_LONG == SIZEOF_LONG
-    sscanf(str, "%lx", &np);
-#else
-    sscanf(str, "%llx", &np);
-#endif
</span><span style="color: #000000;background-color: #ddffdd">+    sscanf(str, "%" PRIu64, &np);
</span>     
     (fp)->l_uf = (np) & 0xFFFFFFFF;                                     \
     (fp)->l_ui = (((np) >> FRACTION_PREC) & 0xFFFFFFFF);          \
</code></pre>

<br>
</li>

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

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