Skip to content

Commit

Permalink
Uglify code to fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
prlw1 authored and prlw1 committed Jul 1, 2022
1 parent fa2e8dc commit 0e011ed
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sys/kern/kern_fork.c
@@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -311,8 +311,7 @@ fork1(struct lwp *l1, int flags, int exitsig, void *stack, size_t stacksize,
/* 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);
Expand Down

0 comments on commit 0e011ed

Please sign in to comment.