From nobody Sun Jan 28 20:05:03 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TNMq40h4Qz59Ccc; Sun, 28 Jan 2024 20:05:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TNMq35j6zz3xC3; Sun, 28 Jan 2024 20:05:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706472303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6MQ7soP4kB1QxH//pNLpuBkhyoeXOTlc+wICXfxcEPo=; b=ZmENEKfm0aSGjTimXBn5suYdWQrhR/7+EuJe15jHkJyt2U8wfXdPf3z5oJX5jSNBx8rFZl BU3QxSfxr1+2jZy6n1P+WxyprKqP6ADgjU2gkksf1Cshz/tljFURf5cgGRWcTtsBnWsQ/+ 1Oh67/PVjafaNQpWq+OhNZkzmPRBNvSTr3qSzdbF8bDYA++Ak0jPQEjDUUUYzxjw6K1lYD Qin8I7cOsQ5KqklDuBS9SBDuSYWyPckMaX761knoqi790HlLKo+66NwkOhlm0Bm2036Do1 7IEmhqAfE8l+zJ+hnOhD6WiwpkUSxurNAMLOjQXXV+9zeVyYoaubtt8QOM2PbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706472303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6MQ7soP4kB1QxH//pNLpuBkhyoeXOTlc+wICXfxcEPo=; b=Wkf7SOj3M5dmCgnQPjgYiNiEJCKvzZEmJDDyVkrZiI7F+sH//tKvlnOrvDWzalrMBWioNz DzcxcemDIB50p4zrlKzUGU62jET86rrwuGqilPdetYdHksWOuTCLRRF4lIWgqlDmfmP3MM jMv9nzop6qgQBmfCQ2JQ70L82XKPsw0ewu9ySneccurLwbBVrsb/Gyp7tQgA4y6xLu70zS Tu30e61p3bwDzXkwOFYGpHHrAKYvo9l8VaU2mLC5Jv1PY06fhpsh9QnOjYKNKRaCrc1MAu mi2o4FAnzIdkW7fAbg6d9YRhqWRbUqBSfj4jIyIjfZmjH0kmqbmo/sLLZWJKAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706472303; a=rsa-sha256; cv=none; b=B5Dskip1XFWKqbHXoILjM3u4Q4eRLd6OpxYpIp/ujFxLaag7664py+kh1ubq5Q2NDlpVSp K8v0VfgVwbS01vp/jQh4KZ132vy2dGAdzXYJk12u9VLhknoD4g95jPXs0hsWYEINbImPjV 01WL8tBAR7EnLqsxe+nvP8H4Vl2Y+EIzSf71TP0Ef/V6f6KEz/Sj7Oe5cBNr0r+x7UYtDb H5NQuWxscRYacaFrUsAR41EKXWPcLhZAtx1wCysB3b6yHggqb6qwGKE6J1Um9EUak4oRxD L28z9MaGIiSJn6uGu1jOwHP+lCPIRfBGqXW3jcK1CdiDNLMmZ122wigOCGQg9A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TNMq34n3nzLcs; Sun, 28 Jan 2024 20:05:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40SK53sc032408; Sun, 28 Jan 2024 20:05:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40SK53nt032405; Sun, 28 Jan 2024 20:05:03 GMT (envelope-from git) Date: Sun, 28 Jan 2024 20:05:03 GMT Message-Id: <202401282005.40SK53nt032405@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: dcc20bced515 - main - stand: Use modern function definitions List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dcc20bced51583df83e49af269ff7be5fb48dbf8 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=dcc20bced51583df83e49af269ff7be5fb48dbf8 commit dcc20bced51583df83e49af269ff7be5fb48dbf8 Author: Warner Losh AuthorDate: 2024-01-28 18:36:21 +0000 Commit: Warner Losh CommitDate: 2024-01-28 20:04:31 +0000 stand: Use modern function definitions Use modern function definitions for functions with no args. Sponsored by: Netflix --- stand/common/boot.c | 2 +- stand/efi/libefi/efinet.c | 2 +- stand/fdt/fdt_loader_cmd.c | 6 +++--- stand/libofw/ofw_console.c | 4 ++-- stand/libofw/openfirm.c | 8 ++++---- stand/libsa/bzipfs.c | 2 +- stand/libsa/powerpc/syncicache.c | 2 +- stand/uboot/main.c | 2 +- stand/uboot/net.c | 2 +- stand/uboot/uboot_console.c | 4 ++-- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/stand/common/boot.c b/stand/common/boot.c index db4bb4fc2ea8..658da097b9a9 100644 --- a/stand/common/boot.c +++ b/stand/common/boot.c @@ -160,7 +160,7 @@ command_autoboot(int argc, char *argv[]) * we haven't tried already, try now. */ void -autoboot_maybe() +autoboot_maybe(void) { char *cp; diff --git a/stand/efi/libefi/efinet.c b/stand/efi/libefi/efinet.c index 62fc203c83b5..97890c9d9b43 100644 --- a/stand/efi/libefi/efinet.c +++ b/stand/efi/libefi/efinet.c @@ -352,7 +352,7 @@ struct devsw efinet_dev = { }; static int -efinet_dev_init() +efinet_dev_init(void) { struct netif_dif *dif; struct netif_stats *stats; diff --git a/stand/fdt/fdt_loader_cmd.c b/stand/fdt/fdt_loader_cmd.c index a27ac53cb13b..eb152ae1949c 100644 --- a/stand/fdt/fdt_loader_cmd.c +++ b/stand/fdt/fdt_loader_cmd.c @@ -111,7 +111,7 @@ static const struct cmdtab commands[] = { static char cwd[FDT_CWD_LEN] = "/"; static vm_offset_t -fdt_find_static_dtb() +fdt_find_static_dtb(void) { Elf_Ehdr *ehdr; Elf_Shdr *shdr; @@ -428,7 +428,7 @@ fdt_check_overlay_compatible(void *base_fdt, void *overlay_fdt) * Returns the number of overlays successfully applied */ int -fdt_apply_overlays() +fdt_apply_overlays(void) { struct preloaded_file *fp; size_t max_overlay_size, next_fdtp_size; @@ -551,7 +551,7 @@ fdt_is_setup(void) } int -fdt_setup_fdtp() +fdt_setup_fdtp(void) { struct preloaded_file *bfp; vm_offset_t va; diff --git a/stand/libofw/ofw_console.c b/stand/libofw/ofw_console.c index 42ff045e8831..b0ead0aba198 100644 --- a/stand/libofw/ofw_console.c +++ b/stand/libofw/ofw_console.c @@ -83,7 +83,7 @@ ofw_cons_putchar(int c) static int saved_char = -1; int -ofw_cons_getchar() +ofw_cons_getchar(void) { unsigned char ch = '\0'; int l; @@ -105,7 +105,7 @@ ofw_cons_getchar() } int -ofw_cons_poll() +ofw_cons_poll(void) { unsigned char ch; diff --git a/stand/libofw/openfirm.c b/stand/libofw/openfirm.c index 211722c08e10..da0f589faa67 100644 --- a/stand/libofw/openfirm.c +++ b/stand/libofw/openfirm.c @@ -135,7 +135,7 @@ OF_test(char *name) /* Return firmware millisecond count. */ int -OF_milliseconds() +OF_milliseconds(void) { static struct { cell_t name; @@ -693,7 +693,7 @@ OF_boot(char *bootspec) /* Suspend and drop back to the Open Firmware interface. */ void -OF_enter() +OF_enter(void) { static struct { cell_t name; @@ -708,7 +708,7 @@ OF_enter() /* Shut down and drop back to the Open Firmware interface. */ void -OF_exit() +OF_exit(void) { static struct { cell_t name; @@ -723,7 +723,7 @@ OF_exit() } void -OF_quiesce() +OF_quiesce(void) { static struct { cell_t name; diff --git a/stand/libsa/bzipfs.c b/stand/libsa/bzipfs.c index 9a14380bae51..ad51e934ed9c 100644 --- a/stand/libsa/bzipfs.c +++ b/stand/libsa/bzipfs.c @@ -366,7 +366,7 @@ bz_internal_error(int errorcode) #ifdef REGRESSION /* Small test case, open and decompress test.bz2 */ -int main() +int main(void) { struct open_file f; char buf[1024]; diff --git a/stand/libsa/powerpc/syncicache.c b/stand/libsa/powerpc/syncicache.c index 0fcb1914a0da..1f99007dcdae 100644 --- a/stand/libsa/powerpc/syncicache.c +++ b/stand/libsa/powerpc/syncicache.c @@ -54,7 +54,7 @@ int cacheline_size = 0; static void getcachelinesize(void); static void -getcachelinesize() +getcachelinesize(void) { static int cachemib[] = { CTL_MACHDEP, CPU_CACHELINE }; int clen; diff --git a/stand/uboot/main.c b/stand/uboot/main.c index 6147757ced71..5a896959122e 100644 --- a/stand/uboot/main.c +++ b/stand/uboot/main.c @@ -339,7 +339,7 @@ get_load_device(int *type, int *unit, int *slice, int *partition) } static void -print_disk_probe_info() +print_disk_probe_info(void) { char slice[32]; char partition[32]; diff --git a/stand/uboot/net.c b/stand/uboot/net.c index 969724ea02df..392dd1ca45c2 100644 --- a/stand/uboot/net.c +++ b/stand/uboot/net.c @@ -100,7 +100,7 @@ static struct uboot_softc uboot_softc; * to obtain all this info again. */ static void -get_env_net_params() +get_env_net_params(void) { char *envstr; in_addr_t rootaddr, serveraddr; diff --git a/stand/uboot/uboot_console.c b/stand/uboot/uboot_console.c index d8819b8193e2..f6656309be6c 100644 --- a/stand/uboot/uboot_console.c +++ b/stand/uboot/uboot_console.c @@ -73,14 +73,14 @@ uboot_cons_putchar(int c) } static int -uboot_cons_getchar() +uboot_cons_getchar(void) { return (ub_getc()); } static int -uboot_cons_poll() +uboot_cons_poll(void) { return (ub_tstc());