From 4a1be513c08971b69d80f00478ade68cb25e7d3b Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Thu, 19 Jan 2023 14:22:12 -0500 Subject: Include mig generated device headers to avoid missing prototypes Some of the existing definitions lacked the const qualifier, which was added. Message-Id: --- device/dev_hdr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'device/dev_hdr.h') diff --git a/device/dev_hdr.h b/device/dev_hdr.h index 56e0d825..ac6ce7e1 100644 --- a/device/dev_hdr.h +++ b/device/dev_hdr.h @@ -107,7 +107,7 @@ typedef struct mach_device *mach_device_t; /* * To find and remove device entries */ -mach_device_t device_lookup(char *); /* by name */ +mach_device_t device_lookup(const char *); /* by name */ void mach_device_reference(mach_device_t); void mach_device_deallocate(mach_device_t); @@ -136,7 +136,7 @@ boolean_t dev_map(dev_map_fn, mach_port_t); * device name lookup */ extern boolean_t dev_name_lookup( - char * name, + const char * name, dev_ops_t *ops, /* out */ int *unit); /* out */ -- cgit v1.2.3