Date: Wed, 27 Jul 2016 14:27:08 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r303391 - head/sys/kern Message-ID: <201607271427.u6RER8C0048537@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Wed Jul 27 14:27:08 2016 New Revision: 303391 URL: https://svnweb.freebsd.org/changeset/base/303391 Log: ANSIfy kern_proc.c and delete register keyword Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6478 Modified: head/sys/kern/kern_proc.c Modified: head/sys/kern/kern_proc.c ============================================================================== --- head/sys/kern/kern_proc.c Wed Jul 27 14:12:04 2016 (r303390) +++ head/sys/kern/kern_proc.c Wed Jul 27 14:27:08 2016 (r303391) @@ -354,10 +354,9 @@ found: * The caller must hold proctree_lock. */ struct pgrp * -pgfind(pgid) - register pid_t pgid; +pgfind(pid_t pgid) { - register struct pgrp *pgrp; + struct pgrp *pgrp; sx_assert(&proctree_lock, SX_LOCKED); @@ -435,11 +434,7 @@ errout: * Begin a new session if required. */ int -enterpgrp(p, pgid, pgrp, sess) - register struct proc *p; - pid_t pgid; - struct pgrp *pgrp; - struct session *sess; +enterpgrp(struct proc *p, pid_t pgid, struct pgrp *pgrp, struct session *sess) { sx_assert(&proctree_lock, SX_XLOCKED); @@ -500,9 +495,7 @@ enterpgrp(p, pgid, pgrp, sess) * Move p to an existing process group */ int -enterthispgrp(p, pgrp) - register struct proc *p; - struct pgrp *pgrp; +enterthispgrp(struct proc *p, struct pgrp *pgrp) { sx_assert(&proctree_lock, SX_XLOCKED); @@ -527,9 +520,7 @@ enterthispgrp(p, pgrp) * Move p to a process group */ static void -doenterpgrp(p, pgrp) - struct proc *p; - struct pgrp *pgrp; +doenterpgrp(struct proc *p, struct pgrp *pgrp) { struct pgrp *savepgrp; @@ -566,8 +557,7 @@ doenterpgrp(p, pgrp) * remove process from process group */ int -leavepgrp(p) - register struct proc *p; +leavepgrp(struct proc *p) { struct pgrp *savepgrp; @@ -588,8 +578,7 @@ leavepgrp(p) * delete a process group */ static void -pgdelete(pgrp) - register struct pgrp *pgrp; +pgdelete(struct pgrp *pgrp) { struct session *savesess; struct tty *tp; @@ -622,9 +611,7 @@ pgdelete(pgrp) } static void -pgadjustjobc(pgrp, entering) - struct pgrp *pgrp; - int entering; +pgadjustjobc(struct pgrp *pgrp, int entering) { PGRP_LOCK(pgrp); @@ -764,10 +751,9 @@ killjobc(void) * hang-up all process in that group. */ static void -orphanpg(pg) - struct pgrp *pg; +orphanpg(struct pgrp *pg) { - register struct proc *p; + struct proc *p; PGRP_LOCK_ASSERT(pg, MA_OWNED); @@ -812,9 +798,9 @@ sess_release(struct session *s) DB_SHOW_COMMAND(pgrpdump, pgrpdump) { - register struct pgrp *pgrp; - register struct proc *p; - register int i; + struct pgrp *pgrp; + struct proc *p; + int i; for (i = 0; i <= pgrphash; i++) { if (!LIST_EMPTY(&pgrphashtbl[i])) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607271427.u6RER8C0048537>