[Git][NTPsec/ntpsec][master] Boolification.

Eric S. Raymond gitlab at mg.gitlab.com
Tue Jan 3 00:14:54 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
911e00d5 by Eric S. Raymond at 2017-01-02T19:14:40-05:00
Boolification.

- - - - -


1 changed file:

- ntpd/refclock_magnavox.c


Changes:

=====================================
ntpd/refclock_magnavox.c
=====================================
--- a/ntpd/refclock_magnavox.c
+++ b/ntpd/refclock_magnavox.c
@@ -106,7 +106,7 @@
  */
 struct mx4200unit {
 	u_int  pollcnt;			/* poll message counter */
-	u_int  polled;			/* Hand in a time sample? */
+	bool   polled;			/* Hand in a time sample? */
 	u_int  lastserial;		/* last pps serial number */
 	double avg_lat;			/* average latitude */
 	double avg_lon;			/* average longitude */
@@ -282,7 +282,7 @@ mx4200_config(
 		up->moving   = false;	/* Static Installation */
 	}
 	up->pollcnt     	= 2;
-	up->polled      	= 0;
+	up->polled      	= false;
 	up->known       	= false;
 	up->avg_lat     	= 0.0;
 	up->avg_lon     	= 0.0;
@@ -614,7 +614,7 @@ mx4200_poll(
 	 * polled every 64 seconds. Ask mx4200_receive to hand in
 	 * a timestamp.
 	 */
-	up->polled = 1;
+	up->polled = true;
 	pp->polls++;
 
 	/*
@@ -870,7 +870,7 @@ mx4200_receive(
 		 * We have succeeded in answering the poll.
 		 * Turn off the flag and return
 		 */
-		up->polled = 0;
+		up->polled = false;
 		break;
 
 	/*



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/911e00d58ec6eaef58fba3177cb205dc898011fa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170103/dd1bf701/attachment.html>


More information about the vc mailing list