[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 37/75: fix compiler warnings in hurd/exec
From: |
Samuel Thibault |
Subject: |
[hurd] 37/75: fix compiler warnings in hurd/exec |
Date: |
Thu, 14 Jan 2016 01:04:08 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch dde
in repository hurd.
commit 05c3ffac543052c8d0b171a5f77bb977d5316a61
Author: Flavio Cruz <address@hidden>
Date: Tue Dec 29 18:10:27 2015 +0100
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.
---
exec/elfcore.c | 4 ++--
exec/main.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/exec/elfcore.c b/exec/elfcore.c
index 3e4551e..4840217 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 beb6f61..1ed7763 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)
{
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 60/75: Drop OTHERLIBS and use LDLIBS exclusively, (continued)
- [hurd] 60/75: Drop OTHERLIBS and use LDLIBS exclusively, Samuel Thibault, 2016/01/13
- [hurd] 63/75: allow pfinet to link using -O0, Samuel Thibault, 2016/01/13
- [hurd] 55/75: fix compiler warnings in hurd/utils, Samuel Thibault, 2016/01/13
- [hurd] 48/75: drop the deprecated malloc/free hooks in hurd/mach-defpager, Samuel Thibault, 2016/01/13
- [hurd] 38/75: fix compiler warnings in hurd/ext2fs, Samuel Thibault, 2016/01/13
- [hurd] 39/75: fix compiler warnings in hurd/console-client, Samuel Thibault, 2016/01/13
- [hurd] 51/75: Include missing header file in hurd/proc, Samuel Thibault, 2016/01/13
- [hurd] 34/75: boot: Fix boot.c compiler warning., Samuel Thibault, 2016/01/13
- [hurd] 53/75: fix compiler warnings in hurd/startup, Samuel Thibault, 2016/01/13
- [hurd] 36/75: fix compiler warnings in hurd/daemons, Samuel Thibault, 2016/01/13
- [hurd] 37/75: fix compiler warnings in hurd/exec,
Samuel Thibault <=
- [hurd] 44/75: fix compiler warnings in hurd/libihash, Samuel Thibault, 2016/01/13
- [hurd] 42/75: fix compiler warnings in hurd/isofs, Samuel Thibault, 2016/01/13
- [hurd] 43/75: fix compiler warnings in hurd/libftpconn, Samuel Thibault, 2016/01/13
- [hurd] 61/75: fix compiler warning in hurd/fstests, Samuel Thibault, 2016/01/13
- [hurd] 45/75: fix compiler warnings in hurd/libnetfs, Samuel Thibault, 2016/01/13
- [hurd] 59/75: Use DEVICE_IMPORTS to include libports/ports.h, Samuel Thibault, 2016/01/13
- [hurd] 46/75: fix compiler warnings in hurd/libshouldbeinlibc, Samuel Thibault, 2016/01/13