Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Style
details: https://anonhg.NetBSD.org/src/rev/666b394613b2
branches: trunk
changeset: 328191:666b394613b2
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Mar 29 09:31:11 2014 +0000
description:
Style
diffstat:
sys/kern/exec_subr.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diffs (75 lines):
diff -r 1b0dbb2ecf88 -r 666b394613b2 sys/kern/exec_subr.c
--- a/sys/kern/exec_subr.c Sat Mar 29 09:27:57 2014 +0000
+++ b/sys/kern/exec_subr.c Sat Mar 29 09:31:11 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_subr.c,v 1.70 2011/08/08 06:30:43 enami Exp $ */
+/* $NetBSD: exec_subr.c,v 1.71 2014/03/29 09:31:11 maxv Exp $ */
/*
* Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_subr.c,v 1.70 2011/08/08 06:30:43 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_subr.c,v 1.71 2014/03/29 09:31:11 maxv Exp $");
#include "opt_pax.h"
@@ -83,7 +83,7 @@
vsize_t len, vaddr_t addr, struct vnode *vp, u_long offset,
u_int prot, int flags)
{
- struct exec_vmcmd *vcp;
+ struct exec_vmcmd *vcp;
VMCMD_EVCNT_INCR(calls);
KASSERT(proc != vmcmd_map_pagedvn || (vp->v_iflag & VI_TEXT));
@@ -173,14 +173,14 @@
* map the vnode in using uvm_map.
*/
- if (cmd->ev_len == 0)
- return(0);
- if (cmd->ev_offset & PAGE_MASK)
- return(EINVAL);
+ if (cmd->ev_len == 0)
+ return 0;
+ if (cmd->ev_offset & PAGE_MASK)
+ return EINVAL;
if (cmd->ev_addr & PAGE_MASK)
- return(EINVAL);
+ return EINVAL;
if (cmd->ev_len & PAGE_MASK)
- return(EINVAL);
+ return EINVAL;
prot = cmd->ev_prot;
maxprot = UVM_PROT_ALL;
@@ -291,7 +291,7 @@
round_page(cmd->ev_addr + cmd->ev_len),
maxprot, true);
if (error)
- return (error);
+ return error;
}
if (prot != maxprot) {
@@ -300,7 +300,7 @@
round_page(cmd->ev_addr + cmd->ev_len),
prot, false);
if (error)
- return (error);
+ return error;
}
return 0;
@@ -416,7 +416,7 @@
epp->ep_maxsaddr = (vaddr_t)STACK_GROW(epp->ep_minsaddr,
max_stack_size);
- DPRINTF(("ep_ssize=%llx ep_maxsaddr=%llx\n",
+ DPRINTF(("ep_ssize=%llx ep_maxsaddr=%llx\n",
(unsigned long long)epp->ep_ssize,
(unsigned long long)epp->ep_maxsaddr));
Home |
Main Index |
Thread Index |
Old Index