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/dev_name.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'device/dev_name.c') diff --git a/device/dev_name.c b/device/dev_name.c index 59ea961b..13ff6dc9 100644 --- a/device/dev_name.c +++ b/device/dev_name.c @@ -39,7 +39,7 @@ /* * Routines placed in empty entries in the device tables */ -int nulldev(void) +int nulldev_reset(dev_t) { return (D_SUCCESS); } @@ -78,7 +78,12 @@ int nulldev_portdeath(dev_t dev, mach_port_t port) return (D_SUCCESS); } -int nodev(void) +int nodev_async_in(dev_t, const ipc_port_t, int, filter_t*, unsigned int) +{ + return (D_INVALID_OPERATION); +} + +int nodev_info(dev_t, int, int*) { return (D_INVALID_OPERATION); } -- cgit v1.2.3