Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Uglify code to fix build.



details:   https://anonhg.NetBSD.org/src/rev/605559bfec0d
branches:  trunk
changeset: 368246:605559bfec0d
user:      prlw1 <prlw1%NetBSD.org@localhost>
date:      Fri Jul 01 09:54:36 2022 +0000

description:
Uglify code to fix build.

diffstat:

 sys/kern/kern_fork.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r a448edb20296 -r 605559bfec0d sys/kern/kern_fork.c
--- a/sys/kern/kern_fork.c      Fri Jul 01 01:08:06 2022 +0000
+++ b/sys/kern/kern_fork.c      Fri Jul 01 09:54:36 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_fork.c,v 1.228 2022/07/01 01:05:21 riastradh Exp $        */
+/*     $NetBSD: kern_fork.c,v 1.229 2022/07/01 09:54:36 prlw1 Exp $    */
 
 /*-
  * Copyright (c) 1999, 2001, 2004, 2006, 2007, 2008, 2019
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_fork.c,v 1.228 2022/07/01 01:05:21 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_fork.c,v 1.229 2022/07/01 09:54:36 prlw1 Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_dtrace.h"
@@ -311,8 +311,7 @@
                /* We were unable to allocate a process ID. */
                uvm_uarea_free(uaddr);
                mutex_enter(p1->p_lock);
-               cred = p1->p_cred;
-               uid = kauth_cred_getuid(cred);
+               uid = kauth_cred_getuid(p1->p_cred);
                (void)chgproccnt(uid, -1);
                mutex_exit(p1->p_lock);
                atomic_dec_uint(&nprocs);



Home | Main Index | Thread Index | Old Index