<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>



<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<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/80ed1231167fe52a2ce9002a49bde9bad9f307fa">80ed1231</a></strong>
<div>
<span>by Eric S. Raymond</span>
<i>at 2017-09-12T03:07:58+00:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">Suppress a false-positive Coverity warning.
</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class="file-stats">
<a href="#b2e62cf267dd4256a742fd991ad814e8ecf1b9b1">
tests/libntp/clocktime.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="b2e62cf267dd4256a742fd991ad814e8ecf1b9b1">
<a href="https://gitlab.com/NTPsec/ntpsec/commit/80ed1231167fe52a2ce9002a49bde9bad9f307fa#b2e62cf267dd4256a742fd991ad814e8ecf1b9b1"><strong>tests/libntp/clocktime.c</strong></a>
<hr>
<table class="code white" style="font-family: monospace; font-size: 12px;" bgcolor="#fff" width="100%" cellpadding="0" cellspacing="0">
<tr class="line_holder match" id="" style="line-height: 1.6;">
<td class="diff-line-num unfold js-unfold old_line" data-linenumber="197" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">...</td>
<td class="diff-line-num unfold js-unfold new_line" data-linenumber="197" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">...</td>
<td class="line_content match " style="padding-left: 0.5em; padding-right: 0.5em; color: rgba(0,0,0,0.3);" bgcolor="#fafafa">@@ -197,7 +197,7 @@ TEST(clocktime, AlwaysInLimit) {</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="197" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
197
</td>
<td class="diff-line-num new_line" data-linenumber="197" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
197
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC197" class="line" lang="c">                    <span class="n" style="color: #333;">ydayinc</span> <span class="o" style="font-weight: bold;">=</span> <span class="n" style="color: #333;">prime_incs</span><span class="p">[</span><span class="n" style="color: #333;">whichprime</span><span class="p">];</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="198" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
198
</td>
<td class="diff-line-num new_line" data-linenumber="198" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
198
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC198" class="line" lang="c">                    <span class="k" style="font-weight: bold;">for</span> <span class="p">(</span><span class="n" style="color: #333;">hour</span> <span class="o" style="font-weight: bold;">=</span> <span class="o" style="font-weight: bold;">-</span><span class="mi" style="color: #099;">204</span><span class="p">;</span> <span class="n" style="color: #333;">hour</span> <span class="o" style="font-weight: bold;"><</span> <span class="mi" style="color: #099;">204</span><span class="p">;</span> <span class="n" style="color: #333;">hour</span> <span class="o" style="font-weight: bold;">+=</span> <span class="mi" style="color: #099;">2</span><span class="p">)</span> <span class="p">{</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="199" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
199
</td>
<td class="diff-line-num new_line" data-linenumber="199" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
199
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC199" class="line" lang="c">                            <span class="k" style="font-weight: bold;">for</span> <span class="p">(</span><span class="n" style="color: #333;">minute</span> <span class="o" style="font-weight: bold;">=</span> <span class="o" style="font-weight: bold;">-</span><span class="mi" style="color: #099;">60</span><span class="p">;</span> <span class="n" style="color: #333;">minute</span> <span class="o" style="font-weight: bold;"><</span> <span class="mi" style="color: #099;">60</span><span class="p">;</span> <span class="n" style="color: #333;">minute</span><span class="o" style="font-weight: bold;">++</span><span class="p">)</span> <span class="p">{</span></span>
</pre>
</td>
</tr>
<tr class="line_holder old" id="" style="line-height: 1.6;">
<td class="diff-line-num old old_line" data-linenumber="200" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
200
</td>
<td class="diff-line-num new_line old" data-linenumber="200" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
 
</td>
<td class="line_content noteable_line old" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#fbe9eb">
<pre style="margin: 0;">-<span id="LC200" class="line" lang="c">                                <span class="n" style="color: #333;">clocktime</span><span class="p">(</span><span class="mi" style="color: #099;">0</span><span class="p">,</span> <span class="n" style="color: #333;">yday</span><span class="p">,</span> <span class="n" style="color: #333;">hour</span><span class="p">,</span> <span class="n" style="color: #333;">minute</span><span class="p">,</span> <span class="mi" style="color: #099;">30</span><span class="p">,</span> <span class="mi" style="color: #099;">0</span><span class="p">,</span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="" style="line-height: 1.6;">
<td class="diff-line-num new old_line" data-linenumber="201" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
 
</td>
<td class="diff-line-num new new_line" data-linenumber="200" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
200
</td>
<td class="line_content new noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC200" class="line" lang="c">                                <span class="p"><span class="idiff left">(</span></span><span class="kt" style="color: #458; font-weight: bold;"><span class="idiff">void</span></span><span class="p"><span class="idiff right">)</span></span><span class="n" style="color: #333;">clocktime</span><span class="p">(</span><span class="mi" style="color: #099;">0</span><span class="p">,</span> <span class="n" style="color: #333;">yday</span><span class="p">,</span> <span class="n" style="color: #333;">hour</span><span class="p">,</span> <span class="n" style="color: #333;">minute</span><span class="p">,</span> <span class="mi" style="color: #099;">30</span><span class="p">,</span> <span class="mi" style="color: #099;">0</span><span class="p">,</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="201" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
201
</td>
<td class="diff-line-num new_line" data-linenumber="201" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
201
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC201" class="line" lang="c">                                              <span class="n" style="color: #333;">timestamp</span><span class="p">,</span> <span class="o" style="font-weight: bold;">&</span><span class="n" style="color: #333;">yearstart</span><span class="p">,</span> <span class="o" style="font-weight: bold;">&</span><span class="n" style="color: #333;">actual</span><span class="p">);</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="202" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
202
</td>
<td class="diff-line-num new_line" data-linenumber="202" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
202
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC202" class="line" lang="c">                                    <span class="n" style="color: #333;">diff</span> <span class="o" style="font-weight: bold;">=</span> <span class="n" style="color: #333;">actual</span> <span class="o" style="font-weight: bold;">-</span> <span class="n" style="color: #333;">timestamp</span><span class="p">;</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="203" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
203
</td>
<td class="diff-line-num new_line" data-linenumber="203" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
203
</td>
<td class="line_content noteable_line" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC203" class="line" lang="c">                                    <span class="k" style="font-weight: bold;">if</span> <span class="p">(</span><span class="n" style="color: #333;">diff</span> <span class="o" style="font-weight: bold;">>=</span> <span class="mh" style="color: #099;">0x80000000UL</span><span class="p">)</span> <span class="p">{</span></span>
</pre>
</td>
</tr>

</table>
<br>
</li>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

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