aboutsummaryrefslogtreecommitdiff
path: root/device/dev_hdr.h
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-01-19 14:22:12 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-19 23:32:30 +0100
commit4a1be513c08971b69d80f00478ade68cb25e7d3b (patch)
tree781ecf60fc7122b851223e94fded7e75454af077 /device/dev_hdr.h
parentc7a84af651ae5cf2588c4a057564f9c2189846ef (diff)
downloadgnumach-4a1be513c08971b69d80f00478ade68cb25e7d3b.tar.gz
gnumach-4a1be513c08971b69d80f00478ade68cb25e7d3b.tar.bz2
gnumach-4a1be513c08971b69d80f00478ade68cb25e7d3b.zip
Include mig generated device headers to avoid missing prototypes
Some of the existing definitions lacked the const qualifier, which was added. Message-Id: <Y8mYZEKqWN43n2SA@mercury.tail36e24.ts.net>
Diffstat (limited to 'device/dev_hdr.h')
-rw-r--r--device/dev_hdr.h4
1 files changed, 2 insertions, 2 deletions
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 */