summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-20 19:15:33 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-20 19:18:29 +0200
commit974fb49ada3787b06531ccb4437ee245b6cfe8c1 (patch)
treeeef11966ae517cc930c5ad836ffefe08e3dcf7e7 /kern
parent4c06eab356ff4a0e528bf27e09dfbe9a9b4b9556 (diff)
Fix warnings
* kern/bootstrap.c (task_insert_send_right): Remove spurious cast of port into ipc_object_t. (load_protect_text, load_fault_in_text, boot_map, load_bootstrap_symbols): Comment out unused variables and function. (read_exec): Comment out unused user_map variable.
Diffstat (limited to 'kern')
-rw-r--r--kern/bootstrap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kern/bootstrap.c b/kern/bootstrap.c
index 235aa7b..b7db2df 100644
--- a/kern/bootstrap.c
+++ b/kern/bootstrap.c
@@ -90,7 +90,7 @@ task_insert_send_right(
kern_return_t kr;
kr = mach_port_insert_right(task->itk_space, name,
- (ipc_object_t)port, MACH_MSG_TYPE_PORT_SEND);
+ port, MACH_MSG_TYPE_PORT_SEND);
if (kr == KERN_SUCCESS)
break;
assert(kr == KERN_NAME_EXISTS);
@@ -357,6 +357,7 @@ static void get_compat_strings(char *flags_str, char *root_str)
*cp = '\0';
}
+#if 0
/*
* Copy boot_data (executable) to the user portion of this task.
*/
@@ -382,6 +383,7 @@ static boolean_t load_bootstrap_symbols = TRUE;
#else
static boolean_t load_bootstrap_symbols = FALSE;
#endif
+#endif
@@ -450,7 +452,7 @@ read_exec(void *handle, vm_offset_t file_ofs, vm_size_t file_size,
static void copy_bootstrap(void *e, exec_info_t *boot_exec_info)
{
- register vm_map_t user_map = current_task()->map;
+ //register vm_map_t user_map = current_task()->map;
int err;
if ((err = exec_load(boot_read, read_exec, e, boot_exec_info)))