aboutsummaryrefslogtreecommitdiff
path: root/device/dev_name.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-12-25 20:41:46 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-27 00:00:50 +0100
commit84e0fb3f287864eca3a9322ef364b913f6a260bd (patch)
tree123333bce32a7d57c5112aa0d4c07b12821b6305 /device/dev_name.c
parent63eefc08b5e762937118254ad0b82583cc38a2d2 (diff)
downloadgnumach-84e0fb3f287864eca3a9322ef364b913f6a260bd.tar.gz
gnumach-84e0fb3f287864eca3a9322ef364b913f6a260bd.tar.bz2
gnumach-84e0fb3f287864eca3a9322ef364b913f6a260bd.zip
Fix some warnings with -Wmissing-prototypes.
Marked some functions as static (private) as needed and added missing includes. This also revealed some dead code which was removed. Note that -Wmissing-prototypes is not enabled here since there is a bunch more warnings. Message-Id: <Y6j72lWRL9rsYy4j@mars>
Diffstat (limited to 'device/dev_name.c')
-rw-r--r--device/dev_name.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/device/dev_name.c b/device/dev_name.c
index 13ff6dc9..66e6eafe 100644
--- a/device/dev_name.c
+++ b/device/dev_name.c
@@ -241,26 +241,3 @@ dev_set_indirection(const char *name, dev_ops_t ops, int unit)
}
}
}
-
-boolean_t dev_change_indirect(const char *iname, const char *dname, int unit)
-{
- struct dev_ops *dp;
- struct dev_indirect *di;
- boolean_t found = FALSE;
-
- dev_search(dp) {
- if (!strcmp(dp->d_name, dname)) {
- found = TRUE;
- break;
- }
- }
- if (!found) return FALSE;
- dev_indirect_search(di) {
- if (!strcmp(di->d_name, iname)) {
- di->d_ops = dp;
- di->d_unit = unit;
- return TRUE;
- }
- }
- return FALSE;
-}