From: jca Date: Tue, 27 Dec 2022 07:34:05 +0000 (+0000) Subject: Ansify pxe_netif_close() and {,pxe}socktodesc() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d83c687494124e33a6b05dbd794c1c20f86d6fd3;p=openbsd Ansify pxe_netif_close() and {,pxe}socktodesc() To appease the clang 15 warning -Wdeprecated-non-prototype (turned on by -Wall). ok millert@ --- diff --git a/sys/arch/amd64/stand/libsa/pxe.c b/sys/arch/amd64/stand/libsa/pxe.c index e492b55d96b..39009093f82 100644 --- a/sys/arch/amd64/stand/libsa/pxe.c +++ b/sys/arch/amd64/stand/libsa/pxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pxe.c,v 1.7 2016/03/06 22:41:24 naddy Exp $ */ +/* $OpenBSD: pxe.c,v 1.8 2022/12/27 07:34:05 jca Exp $ */ /* $NetBSD: pxe.c,v 1.5 2003/03/11 18:29:00 drochner Exp $ */ /* @@ -241,8 +241,7 @@ pxe_netif_open(void) } void -pxe_netif_close(sock) - int sock; +pxe_netif_close(int sock) { t_PXENV_UDP_CLOSE *uc = (void *) pxe_command_buf; @@ -271,8 +270,7 @@ pxe_netif_shutdown(void) } struct iodesc * -pxesocktodesc(sock) - int sock; +pxesocktodesc(int sock) { #ifdef NETIF_DEBUG diff --git a/sys/arch/i386/stand/libsa/pxe.c b/sys/arch/i386/stand/libsa/pxe.c index b38cfc6bdad..39009093f82 100644 --- a/sys/arch/i386/stand/libsa/pxe.c +++ b/sys/arch/i386/stand/libsa/pxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pxe.c,v 1.7 2016/03/07 05:32:47 naddy Exp $ */ +/* $OpenBSD: pxe.c,v 1.8 2022/12/27 07:34:05 jca Exp $ */ /* $NetBSD: pxe.c,v 1.5 2003/03/11 18:29:00 drochner Exp $ */ /* @@ -241,8 +241,7 @@ pxe_netif_open(void) } void -pxe_netif_close(sock) - int sock; +pxe_netif_close(int sock) { t_PXENV_UDP_CLOSE *uc = (void *) pxe_command_buf; @@ -271,8 +270,7 @@ pxe_netif_shutdown(void) } struct iodesc * -pxesocktodesc(sock) - int sock; +pxesocktodesc(int sock) { #ifdef NETIF_DEBUG diff --git a/sys/lib/libsa/netif.c b/sys/lib/libsa/netif.c index bad2971c692..f0ec4904d32 100644 --- a/sys/lib/libsa/netif.c +++ b/sys/lib/libsa/netif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netif.c,v 1.13 2021/10/25 15:59:46 patrick Exp $ */ +/* $OpenBSD: netif.c,v 1.14 2022/12/27 07:34:05 jca Exp $ */ /* $NetBSD: netif.c,v 1.7 1996/10/13 02:29:03 christos Exp $ */ /* @@ -260,8 +260,7 @@ netif_put(struct iodesc *desc, void *pkt, size_t len) } struct iodesc * -socktodesc(sock) - int sock; +socktodesc(int sock) { if (sock >= SOPEN_MAX) { errno = EBADF;