[Git][NTPsec/ntpsec][master] assert: add comment on a comment that is wrong.

Gary E. Miller gitlab at mg.gitlab.com
Fri Jun 2 05:13:34 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
dee3f727 by Gary E. Miller at 2017-06-01T22:13:07-07:00
assert: add comment on a comment that is wrong.

- - - - -


1 changed file:

- ntpd/ntpd.c


Changes:

=====================================
ntpd/ntpd.c
=====================================
--- a/ntpd/ntpd.c
+++ b/ntpd/ntpd.c
@@ -1224,7 +1224,10 @@ assertion_failed(
 	const char *cond
 	)
 {
+        /* the comment on the next line is not what the line does */
 	isc_assertion_setcallback(NULL);    /* Avoid recursion */
+	/* isc_assertion_setcallback(NULL) just set the default assert()
+         * handler, allowing recursion */
 
 	msyslog(LOG_ERR, "%s:%d: %s(%s) failed",
 		file, line, isc_assertion_typetotext(type), cond);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/dee3f727e0954f1aac9fe4b13225ef89364c2787

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/dee3f727e0954f1aac9fe4b13225ef89364c2787
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/20170602/141c67d2/attachment.html>


More information about the vc mailing list