From 05c3ffac543052c8d0b171a5f77bb977d5316a61 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 29 Dec 2015 18:10:27 +0100 Subject: 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/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exec/main.c') 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) { -- cgit v1.2.3