Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/rtadvd correct use of sizeof
details: https://anonhg.NetBSD.org/src/rev/b925ff2440d8
branches: trunk
changeset: 544209:b925ff2440d8
user: itojun <itojun%NetBSD.org@localhost>
date: Fri Mar 14 18:43:52 2003 +0000
description:
correct use of sizeof
diffstat:
usr.sbin/rtadvd/rtadvd.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r eb96ccbbd47b -r b925ff2440d8 usr.sbin/rtadvd/rtadvd.c
--- a/usr.sbin/rtadvd/rtadvd.c Fri Mar 14 18:32:42 2003 +0000
+++ b/usr.sbin/rtadvd/rtadvd.c Fri Mar 14 18:43:52 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtadvd.c,v 1.27 2003/03/14 18:32:42 itojun Exp $ */
+/* $NetBSD: rtadvd.c,v 1.28 2003/03/14 18:43:52 itojun Exp $ */
/* $KAME: rtadvd.c,v 1.74 2002/09/08 01:25:17 itojun Exp $ */
/*
@@ -1183,7 +1183,7 @@
int optlen = 0;
for (; limit > 0; limit -= optlen) {
- if (limit < sizeof(struct nd_opt_hdr *)) {
+ if (limit < sizeof(struct nd_opt_hdr)) {
syslog(LOG_INFO, "<%s> short option header", __func__);
goto bad;
}
Home |
Main Index |
Thread Index |
Old Index