<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>Hal Murray 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/dec8c322679b4b92a090b2a78ef5fea3fc6f42c9">dec8c322</a></strong>
<div>
<span>by Hal Murray</span>
<i>at 2015-12-04T23:36:14Z</i>
</div>
<pre class='commit-message'>Squash a few more compiler warnings.</pre>
</li>
</ul>
<h4>2 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
tests/ntpd/leapsec.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
util/tg2.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/dec8c322679b4b92a090b2a78ef5fea3fc6f42c9#diff-0'>
<strong>
tests/ntpd/leapsec.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/tests/ntpd/leapsec.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/tests/ntpd/leapsec.c
</span><span style="color: #aaaaaa">@@ -393,9 +393,9 @@ TEST(leapsec, loadFileExpire) {
</span> rc = leapsec_load(pt, stringreader, &cp, false)
&& leapsec_set_table(pt);
TEST_ASSERT_EQUAL(1, rc);
<span style="color: #000000;background-color: #ffdddd">- rc = leapsec_expired(3439756800, NULL);
</span><span style="color: #000000;background-color: #ddffdd">+ rc = leapsec_expired(3439756800u, NULL);
</span> TEST_ASSERT_EQUAL(0, rc);
<span style="color: #000000;background-color: #ffdddd">- rc = leapsec_expired(3610569601, NULL);
</span><span style="color: #000000;background-color: #ddffdd">+ rc = leapsec_expired(3610569601u, NULL);
</span> TEST_ASSERT_EQUAL(1, rc);
}
<span style="color: #aaaaaa">@@ -565,13 +565,13 @@ TEST(leapsec, addDynamic) {
</span> int idx;
static const uint32_t insns[] = {
<span style="color: #000000;background-color: #ffdddd">- 2982009600, // 29 # 1 Jul 1994
- 3029443200, // 30 # 1 Jan 1996
- 3076704000, // 31 # 1 Jul 1997
- 3124137600, // 32 # 1 Jan 1999
- 3345062400, // 33 # 1 Jan 2006
- 3439756800, // 34 # 1 Jan 2009
- 3550089600, // 35 # 1 Jul 2012
</span><span style="color: #000000;background-color: #ddffdd">+ 2982009600u, // 29 # 1 Jul 1994
+ 3029443200u, // 30 # 1 Jan 1996
+ 3076704000u, // 31 # 1 Jul 1997
+ 3124137600u, // 32 # 1 Jan 1999
+ 3345062400u, // 33 # 1 Jan 2006
+ 3439756800u, // 34 # 1 Jan 2009
+ 3550089600u, // 35 # 1 Jul 2012
</span> 0 // sentinel
};
<span style="color: #aaaaaa">@@ -595,13 +595,13 @@ TEST(leapsec, addFixed) {
</span> int idx;
static const struct { uint32_t tt; int of; } insns[] = {
<span style="color: #000000;background-color: #ffdddd">- {2982009600, 29},// # 1 Jul 1994
- {3029443200, 30},// # 1 Jan 1996
- {3076704000, 31},// # 1 Jul 1997
- {3124137600, 32},// # 1 Jan 1999
- {3345062400, 33},// # 1 Jan 2006
- {3439756800, 34},// # 1 Jan 2009
- {3550089600, 35},// # 1 Jul 2012
</span><span style="color: #000000;background-color: #ddffdd">+ {2982009600u, 29},// # 1 Jul 1994
+ {3029443200u, 30},// # 1 Jan 1996
+ {3076704000u, 31},// # 1 Jul 1997
+ {3124137600u, 32},// # 1 Jan 1999
+ {3345062400u, 33},// # 1 Jan 2006
+ {3439756800u, 34},// # 1 Jan 2009
+ {3550089600u, 35},// # 1 Jul 2012
</span> {0,0} // sentinel
};
<span style="color: #aaaaaa">@@ -938,8 +938,8 @@ TEST(leapsec, lsEmptyTableElectric) {
</span> TEST_ASSERT_TRUE(leapsec_electric(-1));
const time_t pivot = lsec2012;
<span style="color: #000000;background-color: #ffdddd">- const uint32_t t0 = lsec2012 - 10;
- const uint32_t tE = lsec2012 + 10;
</span><span style="color: #000000;background-color: #ddffdd">+ const time_t t0 = lsec2012 - 10;
+ const time_t tE = lsec2012 + 10;
</span>
for (t = t0; t != tE; ++t) {
rc = leapsec_query(&qr, t, &pivot);
</code></pre>
<br>
</li>
<li id='diff-1'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/dec8c322679b4b92a090b2a78ef5fea3fc6f42c9#diff-1'>
<strong>
util/tg2.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/util/tg2.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/util/tg2.c
</span><span style="color: #aaaaaa">@@ -916,8 +916,8 @@ main(
</span> }
}
<span style="color: #000000;background-color: #ffdddd">- switch (tolower(FormatCharacter)) {
- case 'i':
</span><span style="color: #000000;background-color: #ddffdd">+ switch (FormatCharacter) {
+ case 'i': case 'I':
</span> printf ("\nFormat is IRIG-1998 (no year coded)...\n\n");
encode = IRIG;
IrigIncludeYear = false;
<span style="color: #aaaaaa">@@ -958,7 +958,7 @@ main(
</span> UnmodulatedInverted = true;
break;
<span style="color: #000000;background-color: #ffdddd">- case 'w':
</span><span style="color: #000000;background-color: #ddffdd">+ case 'w': case 'W':
</span> printf ("\nFormat is WWV(H)...\n\n");
encode = WWV;
break;
<span style="color: #aaaaaa">@@ -1464,7 +1464,7 @@ main(
</span> ParitySum = 0;
for (StringPointer=ParityString; *StringPointer!=NUL; StringPointer++)
{
<span style="color: #000000;background-color: #ffdddd">- switch (toupper(*StringPointer))
</span><span style="color: #000000;background-color: #ddffdd">+ switch (*StringPointer)
</span> {
case '1':
case '2':
<span style="color: #aaaaaa">@@ -1477,19 +1477,19 @@ main(
</span> case '5':
case '6':
case '9':
<span style="color: #000000;background-color: #ffdddd">- case 'A':
- case 'C':
</span><span style="color: #000000;background-color: #ddffdd">+ case 'A': case 'a':
+ case 'C': case 'c':
</span> ParitySum += 2;
break;
case '7':
<span style="color: #000000;background-color: #ffdddd">- case 'B':
- case 'D':
- case 'E':
</span><span style="color: #000000;background-color: #ddffdd">+ case 'B': case 'b':
+ case 'D': case 'd':
+ case 'E': case 'e':
</span> ParitySum += 3;
break;
<span style="color: #000000;background-color: #ffdddd">- case 'F':
</span><span style="color: #000000;background-color: #ddffdd">+ case 'F': case 'f':
</span> ParitySum += 4;
break;
}
<span style="color: #aaaaaa">@@ -1597,8 +1597,8 @@ main(
</span> case DECC: /* decrement pointer and send bit. */
ptr--;
case COEF: /* send BCD bit */
<span style="color: #000000;background-color: #ffdddd">- AsciiValue = toupper(code[ptr]);
- HexValue = isdigit(AsciiValue) ? AsciiValue - '0' : (AsciiValue - 'A')+10;
</span><span style="color: #000000;background-color: #ddffdd">+ AsciiValue = toupper((int)code[ptr]);
+ HexValue = isdigit((int)AsciiValue) ? AsciiValue - '0' : (AsciiValue - 'A')+10;
</span> /* if (Debug) {
if (ptr != OldPtr) {
if (Verbose)
</code></pre>
<br>
</li>
</div>
<div class='footer' style='margin-top: 10px;'>
<p>
—
<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/dec8c322679b4b92a090b2a78ef5fea3fc6f42c9">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/dec8c322679b4b92a090b2a78ef5fea3fc6f42c9"}}</script>
</p>
</div>
</body>
</html>