From: jsg Date: Sat, 22 Jun 2024 10:22:29 +0000 (+0000) Subject: remove space between function names and argument list X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e7c2d835904c2fb4cf01d6ce18e7bae118a8dc97;p=openbsd remove space between function names and argument list --- diff --git a/sys/arch/alpha/alpha/db_disasm.c b/sys/arch/alpha/alpha/db_disasm.c index 54811c19ca0..99d512302b2 100644 --- a/sys/arch/alpha/alpha/db_disasm.c +++ b/sys/arch/alpha/alpha/db_disasm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_disasm.c,v 1.25 2019/11/07 14:44:52 mpi Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.26 2024/06/22 10:22:29 jsg Exp $ */ /* $NetBSD: db_disasm.c,v 1.8 2000/05/25 19:57:30 jhawk Exp $ */ /* @@ -805,7 +805,7 @@ static int regnum[3]; /* which regs used in this inst */ static const char *register_name(int); static const char * -register_name (ireg) +register_name(ireg) int ireg; { int i; diff --git a/sys/arch/powerpc/include/cpu.h b/sys/arch/powerpc/include/cpu.h index 39dbd8521fd..ee1ca592215 100644 --- a/sys/arch/powerpc/include/cpu.h +++ b/sys/arch/powerpc/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.77 2024/02/25 19:15:50 cheloha Exp $ */ +/* $OpenBSD: cpu.h,v 1.78 2024/06/22 10:22:29 jsg Exp $ */ /* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */ /* @@ -259,13 +259,13 @@ flushdcache(void *from, int len) } #define FUNC_SPR(n, name) \ -static __inline u_int32_t ppc_mf ## name (void) \ +static __inline u_int32_t ppc_mf ## name(void) \ { \ u_int32_t ret; \ __asm volatile ("mfspr %0," # n : "=r" (ret)); \ return ret; \ } \ -static __inline void ppc_mt ## name (u_int32_t val) \ +static __inline void ppc_mt ## name(u_int32_t val) \ { \ __asm volatile ("mtspr "# n ",%0" :: "r" (val)); \ } \ @@ -331,7 +331,7 @@ FUNC_SPR(1013, dabr) FUNC_SPR(1023, pir) static __inline u_int32_t -ppc_mftbl (void) +ppc_mftbl(void) { int ret; __asm volatile ("mftb %0" : "=r" (ret)); @@ -359,7 +359,7 @@ ppc_mttb(u_int64_t tb) } static __inline u_int32_t -ppc_mfmsr (void) +ppc_mfmsr(void) { int ret; __asm volatile ("mfmsr %0" : "=r" (ret)); @@ -367,7 +367,7 @@ ppc_mfmsr (void) } static __inline void -ppc_mtmsr (u_int32_t val) +ppc_mtmsr(u_int32_t val) { __asm volatile ("mtmsr %0" :: "r" (val)); } diff --git a/sys/dev/atapiscsi/atapiscsi.c b/sys/dev/atapiscsi/atapiscsi.c index 19e11a79e7d..d2d6b8225ff 100644 --- a/sys/dev/atapiscsi/atapiscsi.c +++ b/sys/dev/atapiscsi/atapiscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atapiscsi.c,v 1.121 2024/05/26 10:01:01 jsg Exp $ */ +/* $OpenBSD: atapiscsi.c,v 1.122 2024/06/22 10:22:29 jsg Exp $ */ /* * This code is derived from code with the copyright below. @@ -409,7 +409,7 @@ wdc_atapi_send_cmd(struct scsi_xfer *sc_xfer) } int -wdc_atapi_ioctl (struct scsi_link *sc_link, u_long cmd, caddr_t addr, int flag) +wdc_atapi_ioctl(struct scsi_link *sc_link, u_long cmd, caddr_t addr, int flag) { struct atapiscsi_softc *as = sc_link->bus->sb_adapter_softc; struct channel_softc *chp = as->chp; diff --git a/sys/dev/ic/trm.c b/sys/dev/ic/trm.c index b2e4ee0f62e..c8ca7842c9c 100644 --- a/sys/dev/ic/trm.c +++ b/sys/dev/ic/trm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trm.c,v 1.45 2024/05/13 01:15:50 jsg Exp $ +/* $OpenBSD: trm.c,v 1.46 2024/06/22 10:22:29 jsg Exp $ * ------------------------------------------------------------ * O.S : OpenBSD * File Name : trm.c @@ -550,7 +550,7 @@ trm_RecoverSRB(struct trm_softc *sc) * ------------------------------------------------------------ */ void -trm_reset (struct trm_softc *sc) +trm_reset(struct trm_softc *sc) { const bus_space_handle_t ioh = sc->sc_iohandle; const bus_space_tag_t iot = sc->sc_iotag; diff --git a/sys/dev/isa/gus.c b/sys/dev/isa/gus.c index d933de6237c..699fcc0635c 100644 --- a/sys/dev/isa/gus.c +++ b/sys/dev/isa/gus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gus.c,v 1.56 2024/05/28 09:27:08 jsg Exp $ */ +/* $OpenBSD: gus.c,v 1.57 2024/06/22 10:22:29 jsg Exp $ */ /* $NetBSD: gus.c,v 1.51 1998/01/25 23:48:06 mycroft Exp $ */ /*- @@ -3366,7 +3366,7 @@ gus_subattach(struct gus_softc *sc, struct isa_attach_args *ia) */ int -gus_test_iobase (bus_space_tag_t iot, int iobase) +gus_test_iobase(bus_space_tag_t iot, int iobase) { bus_space_handle_t ioh1, ioh2, ioh3, ioh4; u_char s1, s2; diff --git a/sys/dev/isa/if_ex.c b/sys/dev/isa/if_ex.c index d3341244fcb..3bd2131ee1f 100644 --- a/sys/dev/isa/if_ex.c +++ b/sys/dev/isa/if_ex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ex.c,v 1.49 2023/05/30 08:30:01 jsg Exp $ */ +/* $OpenBSD: if_ex.c,v 1.50 2024/06/22 10:22:29 jsg Exp $ */ /* * Copyright (c) 1997, Donald A. Schmidt * Copyright (c) 1996, Javier Martín Rueda (jmrueda@diatel.upm.es) @@ -917,7 +917,7 @@ ex_get_media(struct ex_softc *sc) } int -ex_ifmedia_upd (struct ifnet *ifp) +ex_ifmedia_upd(struct ifnet *ifp) { struct ex_softc *sc = ifp->if_softc; diff --git a/sys/dev/pci/bktr/bktr_core.c b/sys/dev/pci/bktr/bktr_core.c index 7a3d9df6b16..a74745adc8f 100644 --- a/sys/dev/pci/bktr/bktr_core.c +++ b/sys/dev/pci/bktr/bktr_core.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bktr_core.c,v 1.43 2022/01/09 05:42:58 jsg Exp $ */ +/* $OpenBSD: bktr_core.c,v 1.44 2024/06/22 10:22:29 jsg Exp $ */ /* $FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp $ */ /* @@ -2367,7 +2367,7 @@ dump_bt848( bktr_ptr_t bktr ) #define BKTR_TEST_RISC_STATUS_BIT3 (1U << 31) static bool_t -notclipped (bktr_reg_t * bktr, int x, int width) { +notclipped(bktr_reg_t * bktr, int x, int width) { int i; bktr_clip_t * clip_node; bktr->clip_start = -1; diff --git a/sys/dev/pci/sv.c b/sys/dev/pci/sv.c index 2e60aabe53a..6e1326f9f0d 100644 --- a/sys/dev/pci/sv.c +++ b/sys/dev/pci/sv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sv.c,v 1.44 2024/05/24 06:02:58 jsg Exp $ */ +/* $OpenBSD: sv.c,v 1.45 2024/06/22 10:22:29 jsg Exp $ */ /* * Copyright (c) 1998 Constantine Paul Sapuntzakis @@ -170,19 +170,19 @@ static __inline__ void sv_write_indirect(struct sv_softc *, u_int8_t, u_int8_t ) static void sv_init_mixer(struct sv_softc *); static __inline__ void -sv_write (struct sv_softc *sc, u_int8_t reg, u_int8_t val) +sv_write(struct sv_softc *sc, u_int8_t reg, u_int8_t val) { bus_space_write_1(sc->sc_iot, sc->sc_ioh, reg, val); } static __inline__ u_int8_t -sv_read (struct sv_softc *sc, u_int8_t reg) +sv_read(struct sv_softc *sc, u_int8_t reg) { return (bus_space_read_1(sc->sc_iot, sc->sc_ioh, reg)); } static __inline__ u_int8_t -sv_read_indirect (struct sv_softc *sc, u_int8_t reg) +sv_read_indirect(struct sv_softc *sc, u_int8_t reg) { u_int8_t iaddr = 0; @@ -196,7 +196,7 @@ sv_read_indirect (struct sv_softc *sc, u_int8_t reg) } static __inline__ void -sv_write_indirect (struct sv_softc *sc, u_int8_t reg, u_int8_t val) +sv_write_indirect(struct sv_softc *sc, u_int8_t reg, u_int8_t val) { u_int8_t iaddr = 0; #ifdef DIAGNOSTIC diff --git a/sys/dev/pci/tga.c b/sys/dev/pci/tga.c index 222fa777892..b4c9cbb52dd 100644 --- a/sys/dev/pci/tga.c +++ b/sys/dev/pci/tga.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tga.c,v 1.43 2022/07/15 17:57:26 kettenis Exp $ */ +/* $OpenBSD: tga.c,v 1.44 2024/06/22 10:22:29 jsg Exp $ */ /* $NetBSD: tga.c,v 1.40 2002/03/13 15:05:18 ad Exp $ */ /* @@ -549,7 +549,7 @@ tgaattach(parent, self, aux) } void -tga_config_interrupts (d) +tga_config_interrupts(d) struct device *d; { struct tga_softc *sc = (struct tga_softc *)d; @@ -1435,7 +1435,7 @@ tga_eraserows(c, row, num, attr) } int -tga_erasecols (c, row, col, num, attr) +tga_erasecols(c, row, col, num, attr) void *c; int row, col, num; uint32_t attr; diff --git a/sys/dev/videomode/vesagtf.c b/sys/dev/videomode/vesagtf.c index 5c8a08f839c..4d498fc99f4 100644 --- a/sys/dev/videomode/vesagtf.c +++ b/sys/dev/videomode/vesagtf.c @@ -657,7 +657,7 @@ vesagtf_mode(unsigned x, unsigned y, unsigned refresh, struct videomode *vmp) #ifndef _KERNEL void -print_xf86_mode (struct videomode *vmp) +print_xf86_mode(struct videomode *vmp) { float vf, hf; @@ -678,7 +678,7 @@ print_xf86_mode (struct videomode *vmp) } int -main (int argc, char *argv[]) +main(int argc, char *argv[]) { struct videomode m; diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index fbd1a68a2f1..84216d168d8 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_descrip.c,v 1.207 2022/12/05 23:18:37 deraadt Exp $ */ +/* $OpenBSD: kern_descrip.c,v 1.208 2024/06/22 10:22:29 jsg Exp $ */ /* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */ /* @@ -94,7 +94,7 @@ filedesc_init(void) } static __inline int -find_next_zero (u_int *bitmap, int want, u_int bits) +find_next_zero(u_int *bitmap, int want, u_int bits) { int i, off, maxoff; u_int sub; diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 477b24fd83c..a6c6d52f66c 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_spppsubr.c,v 1.193 2024/05/13 01:15:53 jsg Exp $ */ +/* $OpenBSD: if_spppsubr.c,v 1.194 2024/06/22 10:22:29 jsg Exp $ */ /* * Synchronous PPP link level subroutines. * @@ -1496,7 +1496,7 @@ sppp_close_event(const struct cp *cp, struct sppp *sp) } void -sppp_increasing_timeout (const struct cp *cp, struct sppp *sp) +sppp_increasing_timeout(const struct cp *cp, struct sppp *sp) { int timo;