Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd Don't increment the induction variable twice.
details: https://anonhg.NetBSD.org/src/rev/358e829fd8ee
branches: trunk
changeset: 342782:358e829fd8ee
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Jan 08 19:01:12 2016 +0000
description:
Don't increment the induction variable twice.
diffstat:
external/bsd/bind/dist/lib/isc/netaddr.c | 3 +--
external/bsd/ntp/dist/lib/isc/netaddr.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r dff05739d95d -r 358e829fd8ee external/bsd/bind/dist/lib/isc/netaddr.c
--- a/external/bsd/bind/dist/lib/isc/netaddr.c Fri Jan 08 18:59:01 2016 +0000
+++ b/external/bsd/bind/dist/lib/isc/netaddr.c Fri Jan 08 19:01:12 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netaddr.c,v 1.6 2014/12/10 04:37:59 christos Exp $ */
+/* $NetBSD: netaddr.c,v 1.7 2016/01/08 19:01:12 joerg Exp $ */
/*
* Copyright (C) 2004, 2005, 2007, 2010-2012, 2014 Internet Systems Consortium, Inc. ("ISC")
@@ -281,7 +281,6 @@
for (; i < ipbytes; i++) {
if (p[i] != 0)
return (ISC_R_MASKNONCONTIG);
- i++;
}
*lenp = nbytes * 8 + nbits;
return (ISC_R_SUCCESS);
diff -r dff05739d95d -r 358e829fd8ee external/bsd/ntp/dist/lib/isc/netaddr.c
--- a/external/bsd/ntp/dist/lib/isc/netaddr.c Fri Jan 08 18:59:01 2016 +0000
+++ b/external/bsd/ntp/dist/lib/isc/netaddr.c Fri Jan 08 19:01:12 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netaddr.c,v 1.7 2015/07/10 14:20:29 christos Exp $ */
+/* $NetBSD: netaddr.c,v 1.8 2016/01/08 19:01:12 joerg Exp $ */
/*
* Copyright (C) 2004, 2005, 2007, 2010-2012 Internet Systems Consortium, Inc. ("ISC")
@@ -282,7 +282,6 @@
for (; i < ipbytes; i++) {
if (p[i] != 0)
return (ISC_R_MASKNONCONTIG);
- i++;
}
*lenp = nbytes * 8 + nbits;
return (ISC_R_SUCCESS);
Home |
Main Index |
Thread Index |
Old Index