Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jun 2014 03:46:47 +0000 (UTC)
From:      Davide Italiano <davide@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267092 - head/sys/kern
Message-ID:  <201406050346.s553klum099320@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: davide
Date: Thu Jun  5 03:46:46 2014
New Revision: 267092
URL: http://svnweb.freebsd.org/changeset/base/267092

Log:
  Convert functions to the new-style format.
  
  Submitted by:	Vijay Singh <vijju.singh@gmail.com> via -hackers

Modified:
  head/sys/kern/kern_timeout.c

Modified: head/sys/kern/kern_timeout.c
==============================================================================
--- head/sys/kern/kern_timeout.c	Thu Jun  5 03:16:23 2014	(r267091)
+++ head/sys/kern/kern_timeout.c	Thu Jun  5 03:46:46 2014	(r267092)
@@ -873,10 +873,7 @@ softclock(void *arg)
  *	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;
@@ -898,10 +895,7 @@ timeout(ftn, arg, to_ticks)
 }
 
 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;
 
@@ -1084,9 +1078,7 @@ callout_schedule(struct callout *c, int 
 }
 
 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;
@@ -1258,9 +1250,7 @@ again:
 }
 
 void
-callout_init(c, mpsafe)
-	struct	callout *c;
-	int mpsafe;
+callout_init(struct callout *c, int mpsafe)
 {
 	bzero(c, sizeof *c);
 	if (mpsafe) {
@@ -1274,10 +1264,7 @@ callout_init(c, mpsafe)
 }
 
 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;
@@ -1309,8 +1296,7 @@ _callout_init_lock(c, lock, flags)
  * 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?201406050346.s553klum099320>