Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/sys Revert previous, mrg's fix is better (even wi...
details: https://anonhg.NetBSD.org/src/rev/62e2e8978a3c
branches: trunk
changeset: 319899:62e2e8978a3c
user: kre <kre%NetBSD.org@localhost>
date: Fri Jun 15 08:17:38 2018 +0000
description:
Revert previous, mrg's fix is better (even with possible namespace issues,
which I guess are not great in compat includes) .... the perils of two
people doing fixes at around the same time.
diffstat:
sys/compat/sys/time_types.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 0a6505f081ae -r 62e2e8978a3c sys/compat/sys/time_types.h
--- a/sys/compat/sys/time_types.h Fri Jun 15 07:46:59 2018 +0000
+++ b/sys/compat/sys/time_types.h Fri Jun 15 08:17:38 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: time_types.h,v 1.4 2018/06/15 07:46:59 kre Exp $ */
+/* $NetBSD: time_types.h,v 1.5 2018/06/15 08:17:38 kre Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -97,7 +97,7 @@
struct timespec50 *ts50)
{
#if INT32_MAX < LONG_MAX /* scrub padding */
- memset(ts50, 0, sizeof(struct timespec50));
+ memset(ts50, 0, offsetof(struct timespec50, tv_nsec));
#endif
ts50->tv_sec = (int32_t)ts->tv_sec;
ts50->tv_nsec = ts->tv_nsec;
Home |
Main Index |
Thread Index |
Old Index