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

Eric S. Raymond gitlab at mg.gitlab.com
Thu Jun 16 09:39:04 UTC 2016


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


Commits:
cb8dd3aa by Eric S. Raymond at 2016-06-16T05:38:47-04:00
Booleanization.

- - - - -


1 changed file:

- ntpd/refclock_true.c


Changes:

=====================================
ntpd/refclock_true.c
=====================================
--- a/ntpd/refclock_true.c
+++ b/ntpd/refclock_true.c
@@ -138,7 +138,7 @@ const char *types[] = {"unknown", "goes", "tm", "tcu", "omega", "tl3"};
 struct true_unit {
 	unsigned int	pollcnt;	/* poll message counter */
 	unsigned int	station;	/* which station we are on */
-	unsigned int	polled;		/* Hand in a time sample? */
+	bool		polled;		/* Hand in a time sample? */
 	enum true_state	state;		/* state machine */
 	enum true_type	type;		/* what kind of clock is it? */
 	int		unit;		/* save an extra copy of this */
@@ -558,7 +558,7 @@ true_receive(
 		 * We have succedded in answering the poll.
 		 * Turn off the flag and return
 		 */
-		up->polled = 0;
+		up->polled = false;
 
 		return;
 	}
@@ -859,7 +859,7 @@ true_poll(
 	 * polled every 64 seconds. Ask true_receive to hand in a
 	 * timestamp.
 	 */
-	up->polled = 1;
+	up->polled = true;
 	pp->polls++;
 }
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/cb8dd3aa53beb6d4e94130974e493e74319e09dc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160616/56347b4e/attachment.html>


More information about the vc mailing list