From cf8ef945796fd6c0edb50dac1876fcaf6160ee68 Mon Sep 17 00:00:00 2001 From: Luca Dariz Date: Mon, 16 Jan 2023 14:04:23 +0100 Subject: add missing argument names * ddb/db_break.c: add argument name, compilation fails on Debian/Linux stable with gcc 10.2 otherwise. For some reason on Debian/Hurd a simple test program without argname succeeds, unless I force -std=c11 or similar; I suppose because newer gcc have different defaults. Gnumach seem to still require c89 for some older code, otherwise we could explicitely use gnu99/c99 or gnu11/c11. * ddb/db_cond.c: Likewise * ddb/db_examine.c: Likewise * ddb/db_macro.c: Likewise * ddb/db_watch.c: Likewise * device/dev_name.c: Likewise Message-Id: <20230116130426.246584-1-luca@orpolo.org> --- device/dev_name.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'device/dev_name.c') diff --git a/device/dev_name.c b/device/dev_name.c index 66e6eafe..4595d31c 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_reset(dev_t) +int nulldev_reset(dev_t dev) { return (D_SUCCESS); } @@ -78,12 +78,12 @@ int nulldev_portdeath(dev_t dev, mach_port_t port) return (D_SUCCESS); } -int nodev_async_in(dev_t, const ipc_port_t, int, filter_t*, unsigned int) +int nodev_async_in(dev_t dev, const ipc_port_t port, int x, filter_t* filter, unsigned int j) { return (D_INVALID_OPERATION); } -int nodev_info(dev_t, int, int*) +int nodev_info(dev_t dev, int a, int* b) { return (D_INVALID_OPERATION); } -- cgit v1.2.3