From 0fcf68825f07e437a0b456c6bf3ed6923f79e853 Mon Sep 17 00:00:00 2001 From: thorpej Date: Fri, 10 Mar 2000 22:39:03 +0000 Subject: [PATCH] Back out previous, and adjust a comment. --- sys/netinet/ip_input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 6d89ecac36de..b1e042ca8e34 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.106 2000/03/07 05:39:57 thorpej Exp $ */ +/* $NetBSD: ip_input.c,v 1.107 2000/03/10 22:39:03 thorpej Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -1116,7 +1116,8 @@ ip_dooptions(m) goto bad; } ntime = iptime(); - bcopy(&ntime, (caddr_t)cp + ipt->ipt_ptr - 1, + cp0 = (u_char *) &ntime; /* XXX grumble, GCC... */ + bcopy(cp0, (caddr_t)cp + ipt->ipt_ptr - 1, sizeof(n_time)); ipt->ipt_ptr += sizeof(n_time); }