From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 14 20:22:28 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 503E2267 for ; Mon, 14 Apr 2014 20:22:28 +0000 (UTC) Received: from mail-oa0-x22a.google.com (mail-oa0-x22a.google.com [IPv6:2607:f8b0:4003:c02::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C32B16E4 for ; Mon, 14 Apr 2014 20:22:28 +0000 (UTC) Received: by mail-oa0-f42.google.com with SMTP id i4so9760889oah.15 for ; Mon, 14 Apr 2014 13:22:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=PXL6zfgFvJ0jHyh1VWWs1wwRl119tWJIb9Jc0qhgMoU=; b=Vx9FALx8jbyat0st+fVmAAplUGLgRKHVNjc6FkQED9zgeTTxvAvK7qaG62/5W2uMTb 3+ubH37piO6WKT2Pw1weQgircqF8m4UlsZ7/E3lwx+F6sH5m6KT9P4W8a+omlJ8v5eQW qUcfPkKfUaW6xxK6P4KbKDUYR+3DWclZfUdv8BWvTOlIFGDuBYvurZcRv+xt3GwQbDwW 6QE8rNgElj/bqo3G9Ovgwl+YvI+u/OB1yrYlx5WD1vpnQ8kohDfmSEy/+0cKkkGQcu0O xFI5cNiDZTpxk+iIORsZYBFZxJ5QyOIiNllna9dM6E7Yv641hggD7pwgCap+w1o9w16d bduQ== MIME-Version: 1.0 X-Received: by 10.182.40.201 with SMTP id z9mr3873122obk.45.1397506947380; Mon, 14 Apr 2014 13:22:27 -0700 (PDT) Received: by 10.182.18.239 with HTTP; Mon, 14 Apr 2014 13:22:27 -0700 (PDT) Date: Mon, 14 Apr 2014 13:22:27 -0700 Message-ID: Subject: cosmetic patch for kern_timeout.c From: Vijay Singh To: hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2014 20:22:28 -0000 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 */ 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;