diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2015-12-29 18:10:27 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-12-29 20:47:40 +0100 |
commit | 05c3ffac543052c8d0b171a5f77bb977d5316a61 (patch) | |
tree | f23b657324ae41f03a81ce7cad5cc94be4d4300f | |
parent | a718b0bfcce0d6426d3354815c957ce9dbb1ca21 (diff) |
fix compiler warnings in hurd/exec
exec: Fix compiler warnings.
* exec/elfcore.c: Cast arguments to vm_address_t.
* exec/main.c: Use %lu in asprintf.
-rw-r--r-- | exec/elfcore.c | 4 | ||||
-rw-r--r-- | exec/main.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/exec/elfcore.c b/exec/elfcore.c index 3e4551e5..48402171 100644 --- a/exec/elfcore.c +++ b/exec/elfcore.c @@ -408,8 +408,8 @@ dump_core (task_t task, file_t file, off_t corelimit, if (err == 0) { err = proc_get_arg_locations (proc, - &psinfo.data.pr_argv, - &psinfo.data.pr_envp); + (vm_address_t *) &psinfo.data.pr_argv, + (vm_address_t *) &psinfo.data.pr_envp); mach_port_deallocate (mach_task_self (), proc); } { diff --git a/exec/main.c b/exec/main.c index beb6f61b..1ed7763e 100644 --- a/exec/main.c +++ b/exec/main.c @@ -145,7 +145,7 @@ trivfs_append_args (struct trivfs_control *fsys, if (MACH_PORT_VALID (opt_device_master)) { - asprintf (&opt, "--device-master-port=%d", opt_device_master); + asprintf (&opt, "--device-master-port=%lu", opt_device_master); if (opt) { |