From 448889a4f0c32ba8ea61f870d4edcb0e0d58af85 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 20 Dec 2022 20:01:02 -0500 Subject: Use -Wstrict-prototypes and fix warnings Most of the changes include defining and using proper function type declarations (with argument types declared) and avoiding using the K&R style of function declarations. Message-Id: --- device/net_io.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'device/net_io.h') diff --git a/device/net_io.h b/device/net_io.h index 9468e34b..c9af85ee 100644 --- a/device/net_io.h +++ b/device/net_io.h @@ -79,7 +79,9 @@ extern void net_packet(struct ifnet *, ipc_kmsg_t, unsigned int, boolean_t); extern void net_filter(ipc_kmsg_t, ipc_kmsg_queue_t); extern io_return_t net_getstat(struct ifnet *, dev_flavor_t, dev_status_t, mach_msg_type_number_t *); -extern io_return_t net_write(struct ifnet *, int (*)(), io_req_t); + +typedef int (*net_write_start_device_fn)(short); +extern io_return_t net_write(struct ifnet *, net_write_start_device_fn, io_req_t); /* * Non-interrupt code may allocate and free net_kmsgs with these functions. -- cgit v1.2.3