[Git][NTPsec/ntpsec][master] Boolification.
Eric S. Raymond
gitlab at mg.gitlab.com
Thu Nov 23 11:55:21 UTC 2017
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
d1b893b0 by Eric S. Raymond at 2017-11-23T06:55:02-05:00
Boolification.
- - - - -
1 changed file:
- libntp/ntp_calendar.c
Changes:
=====================================
libntp/ntp_calendar.c
=====================================
--- a/libntp/ntp_calendar.c
+++ b/libntp/ntp_calendar.c
@@ -237,14 +237,14 @@ ntpcal_periodic_extend(
)
{
uint32_t diff;
- char cpl = 0; /* modulo complement flag */
- char neg = 0; /* sign change flag */
+ bool cpl = false; /* modulo complement flag */
+ bool neg = false; /* sign change flag */
/* make the cycle positive and adjust the flags */
if (cycle < 0) {
cycle = - cycle;
- neg ^= 1;
- cpl ^= 1;
+ neg = !neg;
+ cpl = !cpl;
}
/* guard against div by zero or one */
if (cycle > 1) {
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/d1b893b00b314c9f165c2610a2924c7099859000
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/d1b893b00b314c9f165c2610a2924c7099859000
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171123/b93c2aa5/attachment.html>
More information about the vc
mailing list