[ntpsec commit] Fix syntax errors when building with Coverity.
Eric S. Raymond
esr at ntpsec.org
Wed Oct 7 22:43:29 UTC 2015
Module: ntpsec
Branch: master
Commit: 6a3738d365d278ba4d400063fa25af55f14ecf65
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=6a3738d365d278ba4d400063fa25af55f14ecf65
Author: Matthew Van Gundy <mvangund at cisco.com>
Date: Thu Aug 20 15:07:50 2015 -0400
Fix syntax errors when building with Coverity.
Statements introduced in the following previous commit were not
terminated with semicolons:
Clue in Coverity about a variable bound: covers CIDs 117240, 85346.
---
lib/isc/netaddr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/isc/netaddr.c b/lib/isc/netaddr.c
index fa51ff8..0c10fdd 100644
--- a/lib/isc/netaddr.c
+++ b/lib/isc/netaddr.c
@@ -107,7 +107,7 @@ isc_netaddr_eqprefix(const isc_netaddr_t *a, const isc_netaddr_t *b,
INSIST(nbits < 8);
#ifdef __COVERITY__
/* head off CID 117240 */
- assert(nbytes < ipabytes)
+ assert(nbytes < ipabytes);
#endif /* __COVERITY__ */
bytea = pa[nbytes];
byteb = pb[nbytes];
@@ -145,7 +145,7 @@ isc_netaddr_prefixok(const isc_netaddr_t *na, unsigned int prefixlen) {
if (nbits != 0) {
#ifdef __COVERITY__
/* head off CID 85346 */
- assert(nbytes < ipbytes)
+ assert(nbytes < ipbytes);
#endif /* __COVERITY__ */
if ((p[nbytes] & (0xff>>nbits)) != 0U)
return (ISC_R_FAILURE);
More information about the vc
mailing list