summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-02-07 18:38:29 +0000
committerjhb <jhb@FreeBSD.org>2005-02-07 18:38:29 +0000
commit2cfc33f9b1a577677860ff7412307ff6ae91fa38 (patch)
treebd014aa40cf4c5ebe40f104078b87d22d1c73b1f
parentd92d6a0f9f77afe0c9fed1050b4b24a18f74ab01 (diff)
downloadFreeBSD-src-2cfc33f9b1a577677860ff7412307ff6ae91fa38.zip
FreeBSD-src-2cfc33f9b1a577677860ff7412307ff6ae91fa38.tar.gz
Various and sundry style fixes.
-rw-r--r--sys/kern/kern_time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
index c05732d..76572b6 100644
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -437,8 +437,8 @@ struct getitimer_args {
int
getitimer(struct thread *td, struct getitimer_args *uap)
{
- int error;
struct itimerval aitv;
+ int error;
error = kern_getitimer(td, uap->which, &aitv);
if (error != 0)
@@ -493,8 +493,8 @@ struct setitimer_args {
int
setitimer(struct thread *td, struct setitimer_args *uap)
{
- int error;
struct itimerval aitv, oitv;
+ int error;
if (uap->itv == NULL) {
uap->itv = uap->oitv;
@@ -506,12 +506,12 @@ setitimer(struct thread *td, struct setitimer_args *uap)
error = kern_setitimer(td, uap->which, &aitv, &oitv);
if (error != 0 || uap->oitv == NULL)
return (error);
-
return (copyout(&oitv, uap->oitv, sizeof(struct itimerval)));
}
int
-kern_setitimer(struct thread *td, u_int which, struct itimerval *aitv, struct itimerval *oitv)
+kern_setitimer(struct thread *td, u_int which, struct itimerval *aitv,
+ struct itimerval *oitv)
{
struct proc *p = td->td_proc;
struct timeval ctv;
OpenPOWER on IntegriCloud