From: jca Date: Wed, 28 Dec 2022 07:40:23 +0000 (+0000) Subject: Ansify, fixes clang 15 -Wdeprecated-non-prototype (fatal with -Werror) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fb6bbe04250d69da3eb0b19c5658ccdefd490cba;p=openbsd Ansify, fixes clang 15 -Wdeprecated-non-prototype (fatal with -Werror) ok millert@ --- diff --git a/sys/arch/macppc/dev/pm_direct.c b/sys/arch/macppc/dev/pm_direct.c index fab3e394aad..18c4fd17fbd 100644 --- a/sys/arch/macppc/dev/pm_direct.c +++ b/sys/arch/macppc/dev/pm_direct.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pm_direct.c,v 1.33 2022/10/23 08:00:10 kn Exp $ */ +/* $OpenBSD: pm_direct.c,v 1.34 2022/12/28 07:40:23 jca Exp $ */ /* $NetBSD: pm_direct.c,v 1.9 2000/06/08 22:10:46 tsubai Exp $ */ /* @@ -200,11 +200,7 @@ extern void adb_pass_up(struct adbCommand *); * This function dumps contents of the PMData */ void -pm_printerr(ttl, rval, num, data) - char *ttl; - int rval; - int num; - char *data; +pm_printerr(char *ttl, int rval, int num, char *data) { int i; diff --git a/sys/arch/macppc/stand/ofdev.c b/sys/arch/macppc/stand/ofdev.c index 75cabb91e80..9fd8983982b 100644 --- a/sys/arch/macppc/stand/ofdev.c +++ b/sys/arch/macppc/stand/ofdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofdev.c,v 1.28 2022/10/12 09:23:45 kn Exp $ */ +/* $OpenBSD: ofdev.c,v 1.29 2022/12/28 07:40:23 jca Exp $ */ /* $NetBSD: ofdev.c,v 1.1 1997/04/16 20:29:20 thorpej Exp $ */ /* @@ -164,8 +164,7 @@ struct fs_ops file_system[4]; int nfsys; static u_long -get_long(p) - const void *p; +get_long(const void *p) { const unsigned char *cp = p; @@ -238,12 +237,8 @@ read_mac_label(struct of_dev *devp, char *buf, struct disklabel *lp) * Find a valid disklabel. */ static int -search_label(devp, off, buf, lp, off0) - struct of_dev *devp; - u_long off; - char *buf; - struct disklabel *lp; - u_long off0; +search_label(struct of_dev *devp, u_long off, char *buf, struct disklabel *lp, + u_long off0) { size_t read; struct dos_partition *p;