From 3e85b721d653d65a5b6ff655ed1551113f0e0d5b Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 17 May 2017 00:34:34 +0000 Subject: Remove register keyword from sys/ and ANSIfy prototypes A long long time ago the register keyword told the compiler to store the corresponding variable in a CPU register, but it is not relevant for any compiler used in the FreeBSD world today. ANSIfy related prototypes while here. Reviewed by: cem, jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D10193 --- sys/kern/kern_resource.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sys/kern/kern_resource.c') diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 85e8d01cc1be..4cb6f4299600 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -90,7 +90,7 @@ struct getpriority_args { }; #endif int -sys_getpriority(struct thread *td, register struct getpriority_args *uap) +sys_getpriority(struct thread *td, struct getpriority_args *uap) { struct proc *p; struct pgrp *pg; @@ -367,7 +367,7 @@ struct rtprio_args { }; #endif int -sys_rtprio(struct thread *td, register struct rtprio_args *uap) +sys_rtprio(struct thread *td, struct rtprio_args *uap) { struct proc *p; struct thread *tdp; @@ -533,7 +533,7 @@ struct osetrlimit_args { }; #endif int -osetrlimit(struct thread *td, register struct osetrlimit_args *uap) +osetrlimit(struct thread *td, struct osetrlimit_args *uap) { struct orlimit olim; struct rlimit lim; @@ -554,7 +554,7 @@ struct ogetrlimit_args { }; #endif int -ogetrlimit(struct thread *td, register struct ogetrlimit_args *uap) +ogetrlimit(struct thread *td, struct ogetrlimit_args *uap) { struct orlimit olim; struct rlimit rl; @@ -587,7 +587,7 @@ struct __setrlimit_args { }; #endif int -sys_setrlimit(struct thread *td, register struct __setrlimit_args *uap) +sys_setrlimit(struct thread *td, struct __setrlimit_args *uap) { struct rlimit alim; int error; @@ -645,7 +645,7 @@ kern_proc_setrlimit(struct thread *td, struct proc *p, u_int which, struct rlimit *limp) { struct plimit *newlim, *oldlim; - register struct rlimit *alimp; + struct rlimit *alimp; struct rlimit oldssiz; int error; @@ -775,7 +775,7 @@ struct __getrlimit_args { #endif /* ARGSUSED */ int -sys_getrlimit(struct thread *td, register struct __getrlimit_args *uap) +sys_getrlimit(struct thread *td, struct __getrlimit_args *uap) { struct rlimit rlim; int error; @@ -945,7 +945,7 @@ struct getrusage_args { }; #endif int -sys_getrusage(register struct thread *td, register struct getrusage_args *uap) +sys_getrusage(struct thread *td, struct getrusage_args *uap) { struct rusage ru; int error; -- cgit v1.2.3