From owner-svn-src-all@FreeBSD.ORG Thu Jun 5 03:46:47 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 96C2668C; Thu, 5 Jun 2014 03:46:47 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6A3D426A6; Thu, 5 Jun 2014 03:46:47 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s553klss099321; Thu, 5 Jun 2014 03:46:47 GMT (envelope-from davide@svn.freebsd.org) Received: (from davide@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s553klum099320; Thu, 5 Jun 2014 03:46:47 GMT (envelope-from davide@svn.freebsd.org) Message-Id: <201406050346.s553klum099320@svn.freebsd.org> From: Davide Italiano Date: Thu, 5 Jun 2014 03:46:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267092 - head/sys/kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2014 03:46:47 -0000 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 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 */ 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;