[Git][NTPsec/ntpsec][master] refclock_ntpsec: missing braces...

Gary E. Miller gitlab at mg.gitlab.com
Fri Sep 15 03:02:19 UTC 2017


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


Commits:
683415bf by Gary E. Miller at 2017-09-15T03:01:09Z
refclock_ntpsec: missing braces...

This seems to close bug 387

- - - - -


1 changed file:

- ntpd/refclock_nmea.c


Changes:

=====================================
ntpd/refclock_nmea.c
=====================================
--- a/ntpd/refclock_nmea.c
+++ b/ntpd/refclock_nmea.c
@@ -489,10 +489,11 @@ nmea_start(
 	/* Open serial port. Use CLK line discipline, if available. */
 	pp->io.fd = refclock_open(peer->cfg.path, baudrate, LDISC_CLK);
 
-	if (0 > pp->io.fd)
+	if (0 > pp->io.fd) {
 		msyslog(LOG_ERR, "REFCLOCK: %s NMEA device open(%s) failed",
 		    refclock_name(peer), peer->cfg.path);
 		return false;
+        }
 
 	LOGIF(CLOCKINFO, (LOG_NOTICE, "%s serial %s open at %s bps",
 	      refclock_name(peer), peer->cfg.path, baudtext));



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

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/683415bf0485e486d526732d7242a53c4ce4eaf4
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/20170915/b89484fa/attachment.html>


More information about the vc mailing list