Source-Changes-HG archive

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

[src/trunk]: src/lib/libkvm Match the declaration in <sys/kauth.h>



details:   https://anonhg.NetBSD.org/src/rev/d8fd10f855e6
branches:  trunk
changeset: 1022447:d8fd10f855e6
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jul 19 10:30:36 2021 +0000

description:
Match the declaration in <sys/kauth.h>

diffstat:

 lib/libkvm/kvm_proc.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 7e6b11805c9d -r d8fd10f855e6 lib/libkvm/kvm_proc.c
--- a/lib/libkvm/kvm_proc.c     Mon Jul 19 10:28:58 2021 +0000
+++ b/lib/libkvm/kvm_proc.c     Mon Jul 19 10:30:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kvm_proc.c,v 1.94 2019/12/11 20:19:27 ad Exp $ */
+/*     $NetBSD: kvm_proc.c,v 1.95 2021/07/19 10:30:36 christos Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
 #if 0
 static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93";
 #else
-__RCSID("$NetBSD: kvm_proc.c,v 1.94 2019/12/11 20:19:27 ad Exp $");
+__RCSID("$NetBSD: kvm_proc.c,v 1.95 2021/07/19 10:30:36 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -159,7 +159,9 @@
  */
 struct kvm_kauth_cred {
        u_int cr_refcnt;                /* reference count */
-       uint8_t cr_pad[CACHE_LINE_SIZE - sizeof(u_int)];
+#if COHERENCY_UNIT > 4
+       uint8_t cr_pad[COHERENCY_UNIT - 4];
+#endif
        uid_t cr_uid;                   /* user id */
        uid_t cr_euid;                  /* effective user id */
        uid_t cr_svuid;                 /* saved effective user id */



Home | Main Index | Thread Index | Old Index