summaryrefslogtreecommitdiff
path: root/proc/mgt.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-12-14 01:06:37 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-12-17 23:57:00 +0100
commit6b494f5e7599ece2ca981472d690db3df3133bde (patch)
tree82ea19a196c6e4c8c53ddce4d1528e92b9751cb1 /proc/mgt.c
parentb1d240be9b36a1db738e1357081987873be94636 (diff)
Update server handlers to return kern_return_error to fix -Werror=enum-int-mismatch warnings
MiG expects those to return kern_return_t. Message-ID: <ZXqbbXpVqQAwd2qv@jupiter.tail36e24.ts.net>
Diffstat (limited to 'proc/mgt.c')
-rw-r--r--proc/mgt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index f87daeb3..76cebaa9 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -1256,7 +1256,7 @@ genpid (void)
us, communicating the names using command line options. */
/* Implement proc_set_init_task as described in <hurd/process.defs>. */
-error_t
+kern_return_t
S_proc_set_init_task(struct proc *callerp,
task_t task)
{
@@ -1311,7 +1311,7 @@ S_proc_mark_important (struct proc *p)
}
/* Implement proc_is_important as described in <hurd/process.defs>. */
-error_t
+kern_return_t
S_proc_is_important (struct proc *callerp,
boolean_t *essential)
{
@@ -1324,7 +1324,7 @@ S_proc_is_important (struct proc *callerp,
}
/* Implement proc_set_code as described in <hurd/process.defs>. */
-error_t
+kern_return_t
S_proc_set_code (struct proc *callerp,
vm_address_t start_code,
vm_address_t end_code)
@@ -1339,7 +1339,7 @@ S_proc_set_code (struct proc *callerp,
}
/* Implement proc_get_code as described in <hurd/process.defs>. */
-error_t
+kern_return_t
S_proc_get_code (struct proc *callerp,
vm_address_t *start_code,
vm_address_t *end_code)
@@ -1354,7 +1354,7 @@ S_proc_get_code (struct proc *callerp,
}
/* Handle new task notifications from the kernel. */
-error_t
+kern_return_t
S_mach_notify_new_task (struct port_info *notify,
mach_port_t task,
mach_port_t parent)
@@ -1400,7 +1400,7 @@ S_mach_notify_new_task (struct port_info *notify,
/* Implement proc_make_task_namespace as described in
<hurd/process.defs>. */
-error_t
+kern_return_t
S_proc_make_task_namespace (struct proc *callerp,
mach_port_t notify)
{