From owner-svn-src-all@FreeBSD.ORG Wed May 20 16:29:22 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD65C106564A; Wed, 20 May 2009 16:29:22 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9034A8FC08; Wed, 20 May 2009 16:29:22 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4KGTMBB036310; Wed, 20 May 2009 16:29:22 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4KGTM26036309; Wed, 20 May 2009 16:29:22 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <200905201629.n4KGTM26036309@svn.freebsd.org> From: Warner Losh Date: Wed, 20 May 2009 16:29:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r192441 - head/sys/i386/bios X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 20 May 2009 16:29:23 -0000 Author: imp Date: Wed May 20 16:29:22 2009 New Revision: 192441 URL: http://svn.freebsd.org/changeset/base/192441 Log: Some minor style changes: o Convert K&R function definitions to ANSI o Eliminate spaces/tabs that should have been deleted as part of the de__P efforts o Use struct thread * in preference to d_thread_t *. Modified: head/sys/i386/bios/smapi.c Modified: head/sys/i386/bios/smapi.c ============================================================================== --- head/sys/i386/bios/smapi.c Wed May 20 16:11:22 2009 (r192440) +++ head/sys/i386/bios/smapi.c Wed May 20 16:29:22 2009 (r192441) @@ -58,7 +58,7 @@ __FBSDID("$FreeBSD$"); #define ADDR2HDR(addr) ((struct smapi_bios_header *)BIOS_PADDRTOVADDR(addr)) struct smapi_softc { - struct cdev *cdev; + struct cdev * cdev; device_t dev; struct resource * res; int rid; @@ -82,27 +82,22 @@ static struct cdevsw smapi_cdevsw = { .d_flags = D_MEM | D_NEEDGIANT, }; -static void smapi_identify (driver_t *, device_t); -static int smapi_probe (device_t); -static int smapi_attach (device_t); -static int smapi_detach (device_t); -static int smapi_modevent (module_t, int, void *); +static void smapi_identify(driver_t *, device_t); +static int smapi_probe(device_t); +static int smapi_attach(device_t); +static int smapi_detach(device_t); +static int smapi_modevent(module_t, int, void *); -static int smapi_header_cksum (struct smapi_bios_header *); +static int smapi_header_cksum(struct smapi_bios_header *); -extern int smapi32 (struct smapi_bios_parameter *, - struct smapi_bios_parameter *); -extern int smapi32_new (u_long, u_short, - struct smapi_bios_parameter *, - struct smapi_bios_parameter *); +extern int smapi32(struct smapi_bios_parameter *, + struct smapi_bios_parameter *); +extern int smapi32_new(u_long, u_short, + struct smapi_bios_parameter *, + struct smapi_bios_parameter *); static int -smapi_ioctl (dev, cmd, data, fflag, td) - struct cdev *dev; - u_long cmd; - caddr_t data; - int fflag; - d_thread_t * td; +smapi_ioctl (struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread *td) { struct smapi_softc *sc; int error; @@ -283,10 +278,7 @@ smapi_detach (device_t dev) } static int -smapi_modevent (mod, what, arg) - module_t mod; - int what; - void * arg; +smapi_modevent (module_t mod, int what, void *arg) { device_t * devs; int count;