<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/9da2eff0ba84774de3379a26aa8d26c7a8c4c3bd">9da2eff0</a></strong>
<div>
<span>by Eric S. Raymond</span>
<i>at 2015-11-29T18:17:37Z</i>
</div>
<pre class='commit-message'>Boolification: dofptoa() and dolfptoa().</pre>
</li>
</ul>
<h4>3 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
include/ntp_fp.h
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
libntp/dofptoa.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-2'>
libntp/dolfptoa.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/9da2eff0ba84774de3379a26aa8d26c7a8c4c3bd#diff-0'>
<strong>
include/ntp_fp.h
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/include/ntp_fp.h
</span><span style="color: #000000;background-color: #ddffdd">+++ b/include/ntp_fp.h
</span><span style="color: #aaaaaa">@@ -335,8 +335,8 @@ typedef uint32_t u_fp;
</span> /*
  * Prototypes
  */
<span style="color: #000000;background-color: #ffdddd">-extern  char *  dofptoa         (u_fp, int, short, int);
-extern char *  dolfptoa        (uint32_t, uint32_t, int, short, int);
</span><span style="color: #000000;background-color: #ddffdd">+extern     char *  dofptoa         (u_fp, bool, short, bool);
+extern char *  dolfptoa        (uint32_t, uint32_t, bool, short, bool);
</span> 
 extern bool    atolfp          (const char *, l_fp *);
 extern char *  fptoa           (s_fp, short);
<span style="color: #aaaaaa">@@ -368,8 +368,8 @@ extern struct tm * ntp2unix_tm (uint32_t ntp, int local);
</span> #define sptoa(addr)               sockporttoa(addr)
 #define stohost(addr)          socktohost(addr)
 
<span style="color: #000000;background-color: #ffdddd">-#define ufptoa(fpv, ndec)       dofptoa((fpv), 0, (ndec), 0)
-#define        ufptoms(fpv, ndec)      dofptoa((fpv), 0, (ndec), 1)
</span><span style="color: #000000;background-color: #ddffdd">+#define    ufptoa(fpv, ndec)       dofptoa((fpv), false, (ndec), false)
+#define        ufptoms(fpv, ndec)      dofptoa((fpv), false, (ndec), true)
</span> #define   ulfptoa(fpv, ndec)      dolfptoa((fpv)->l_ui, (fpv)->l_uf, 0, (ndec), 0)
 #define        ulfptoms(fpv, ndec)     dolfptoa((fpv)->l_ui, (fpv)->l_uf, 0, (ndec), 1)
 #define        umfptoa(fpi, fpf, ndec) dolfptoa((fpi), (fpf), 0, (ndec), 0)
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/9da2eff0ba84774de3379a26aa8d26c7a8c4c3bd#diff-1'>
<strong>
libntp/dofptoa.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/libntp/dofptoa.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/libntp/dofptoa.c
</span><span style="color: #aaaaaa">@@ -12,9 +12,9 @@
</span> char *
 dofptoa(
        u_fp fpv,
<span style="color: #000000;background-color: #ffdddd">-        int neg,
</span><span style="color: #000000;background-color: #ddffdd">+   bool neg,
</span>   short ndec,
<span style="color: #000000;background-color: #ffdddd">-        int msec
</span><span style="color: #000000;background-color: #ddffdd">+   bool msec
</span>   )
 {
        register uint8_t *cp, *cpend;
<span style="color: #aaaaaa">@@ -126,16 +126,16 @@ fptoa(
</span>   )
 {
        u_fp    plusfp;
<span style="color: #000000;background-color: #ffdddd">-        int     neg;
</span><span style="color: #000000;background-color: #ddffdd">+   bool    isneg;
</span> 
<span style="color: #000000;background-color: #ffdddd">-        neg = (fpv < 0);
-       if (neg) {
</span><span style="color: #000000;background-color: #ddffdd">+   isneg = (fpv < 0);
+       if (isneg) {
</span>           plusfp = (u_fp)(-fpv);
        } else {
                plusfp = (u_fp)fpv;
        }
 
<span style="color: #000000;background-color: #ffdddd">-        return dofptoa(plusfp, neg, ndec, false);
</span><span style="color: #000000;background-color: #ddffdd">+   return dofptoa(plusfp, isneg, ndec, false);
</span> }
 
 
<span style="color: #aaaaaa">@@ -146,14 +146,14 @@ fptoms(
</span>   )
 {
        u_fp    plusfp;
<span style="color: #000000;background-color: #ffdddd">-        int     neg;
</span><span style="color: #000000;background-color: #ddffdd">+   bool    isneg;
</span> 
<span style="color: #000000;background-color: #ffdddd">-        neg = (fpv < 0);
-       if (neg) {
</span><span style="color: #000000;background-color: #ddffdd">+   isneg = (fpv < 0);
+       if (isneg) {
</span>           plusfp = (u_fp)(-fpv);
        } else {
                plusfp = (u_fp)fpv;
        }
 
<span style="color: #000000;background-color: #ffdddd">-        return dofptoa(plusfp, neg, ndec, true);
</span><span style="color: #000000;background-color: #ddffdd">+   return dofptoa(plusfp, isneg, ndec, true);
</span> }
</code></pre>

<br>
</li>
<li id='diff-2'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/9da2eff0ba84774de3379a26aa8d26c7a8c4c3bd#diff-2'>
<strong>
libntp/dolfptoa.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/libntp/dolfptoa.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/libntp/dolfptoa.c
</span><span style="color: #aaaaaa">@@ -13,9 +13,9 @@ char *
</span> dolfptoa(
        uint32_t fpi,
        uint32_t fpv,
<span style="color: #000000;background-color: #ffdddd">-        int neg,
</span><span style="color: #000000;background-color: #ddffdd">+   bool neg,
</span>   short ndec,
<span style="color: #000000;background-color: #ffdddd">-        int msec
</span><span style="color: #000000;background-color: #ddffdd">+   bool msec
</span>   )
 {
        uint8_t *cp, *cpend, *cpdec;
<span style="color: #aaaaaa">@@ -143,7 +143,7 @@ mfptoa(
</span>   short   ndec
        )
 {
<span style="color: #000000;background-color: #ffdddd">-        int     isneg;
</span><span style="color: #000000;background-color: #ddffdd">+   bool    isneg;
</span> 
        isneg = M_ISNEG(fpi);
        if (isneg) {
<span style="color: #aaaaaa">@@ -161,7 +161,7 @@ mfptoms(
</span>   short   ndec
        )
 {
<span style="color: #000000;background-color: #ffdddd">-        int     isneg;
</span><span style="color: #000000;background-color: #ddffdd">+   bool    isneg;
</span> 
        isneg = M_ISNEG(fpi);
        if (isneg) {
</code></pre>

<br>
</li>

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

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