Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/pgoyette-compat]: src/sys/dev/wscons Keep up with -HEAD



details:   https://anonhg.NetBSD.org/src/rev/9bfdc5f46071
branches:  pgoyette-compat
changeset: 321177:9bfdc5f46071
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed Jun 13 02:29:56 2018 +0000

description:
Keep up with -HEAD

diffstat:

 sys/dev/wscons/wsevent_50.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r a4c2e62732ef -r 9bfdc5f46071 sys/dev/wscons/wsevent_50.c
--- a/sys/dev/wscons/wsevent_50.c       Sat May 26 11:48:40 2018 +0000
+++ b/sys/dev/wscons/wsevent_50.c       Wed Jun 13 02:29:56 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsevent_50.c,v 1.1.2.1 2018/03/24 23:52:19 pgoyette Exp $ */
+/* $NetBSD: wsevent_50.c,v 1.1.2.2 2018/06/13 02:29:56 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2006, 2008 The NetBSD Foundation, Inc.
@@ -104,7 +104,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsevent_50.c,v 1.1.2.1 2018/03/24 23:52:19 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsevent_50.c,v 1.1.2.2 2018/06/13 02:29:56 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -134,6 +134,9 @@
 
                ev50.type = ev->type;
                ev50.value = ev->value;
+#if INT32_MAX < LONG_MAX       /* scrub padding */
+               memset(&ev50.time, 0, offsetof(struct timespec50, tv_nsec));
+#endif
                timespec_to_timespec50(&ev->time, &ev50.time);
 
                error = uiomove(&ev50, sizeof(ev50), uio);



Home | Main Index | Thread Index | Old Index