svn commit: r322927 - head/sys/i386/i386

Konstantin Belousov kib at FreeBSD.org
Sat Aug 26 18:06:30 UTC 2017


Author: kib
Date: Sat Aug 26 18:06:29 2017
New Revision: 322927
URL: https://svnweb.freebsd.org/changeset/base/322927

Log:
  MFamd64 r322718:
  Use ANSI C declaration for trap_pfault().  Style.
  
  Reviewed by:	bde
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/i386/i386/trap.c

Modified: head/sys/i386/i386/trap.c
==============================================================================
--- head/sys/i386/i386/trap.c	Sat Aug 26 18:04:29 2017	(r322926)
+++ head/sys/i386/i386/trap.c	Sat Aug 26 18:06:29 2017	(r322927)
@@ -751,17 +751,18 @@ out:
 }
 
 static int
-trap_pfault(frame, usermode, eva)
-	struct trapframe *frame;
-	int usermode;
-	vm_offset_t eva;
+trap_pfault(struct trapframe *frame, int usermode, vm_offset_t eva)
 {
+	struct thread *td;
+	struct proc *p;
 	vm_offset_t va;
 	vm_map_t map;
-	int rv = 0;
+	int rv;
 	vm_prot_t ftype;
-	struct thread *td = curthread;
-	struct proc *p = td->td_proc;
+
+	td = curthread;
+	p = td->td_proc;
+	rv = 0;
 
 	if (__predict_false((td->td_pflags & TDP_NOFAULTING) != 0)) {
 		/*


More information about the svn-src-all mailing list