Date: Mon, 14 Apr 2014 13:22:27 -0700 From: Vijay Singh <vijju.singh@gmail.com> To: hackers@freebsd.org Subject: cosmetic patch for kern_timeout.c Message-ID: <CALCNsJQ2823bjdocy-O77_fnc0qMmHGH9-VNjcQBjyRPkb=JKw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
I was messing around in this file, and decided to convert it to the new-style format: cyc@[/u/vijay/bsd/CODE/cur/sys/kern]# svn diff kern_timeout.c Index: kern_timeout.c =================================================================== --- kern_timeout.c (revision 264468) +++ kern_timeout.c (working copy) @@ -844,10 +844,7 @@ * identify entries for untimeout. */ struct callout_handle -timeout(ftn, arg, to_ticks) - timeout_t *ftn; - void *arg; - int to_ticks; +timeout(timeout_t *ftn, void *arg, int to_ticks) { struct callout_cpu *cc; struct callout *new; @@ -869,10 +866,7 @@ } void -untimeout(ftn, arg, handle) - timeout_t *ftn; - void *arg; - struct callout_handle handle; +untimeout(timeout_t *ftn, void *arg, struct callout_handle handle) { struct callout_cpu *cc; @@ -1055,9 +1049,7 @@ } int -_callout_stop_safe(c, safe) - struct callout *c; - int safe; +_callout_stop_safe(struct callout *c, int safe) { struct callout_cpu *cc, *old_cc; struct lock_class *class; @@ -1229,9 +1221,7 @@ } void -callout_init(c, mpsafe) - struct callout *c; - int mpsafe; +callout_init(struct callout *c, int mpsafe) { bzero(c, sizeof *c); if (mpsafe) { @@ -1245,10 +1235,7 @@ } void -_callout_init_lock(c, lock, flags) - struct callout *c; - struct lock_object *lock; - int flags; +_callout_init_lock(struct callout *c, struct lock_object *lock, int flags) { bzero(c, sizeof *c); c->c_lock = lock; @@ -1280,8 +1267,7 @@ * 2 days. Your milage may vary. - Ken Key <key@cs.utk.edu> */ void -adjust_timeout_calltodo(time_change) - struct timeval *time_change; +adjust_timeout_calltodo(struct timeval *time_change) { register struct callout *p; unsigned long delta_ticks;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALCNsJQ2823bjdocy-O77_fnc0qMmHGH9-VNjcQBjyRPkb=JKw>