From fd0f30ca23e685f56578bebd08b666be0287d59e Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 29 Dec 2015 23:14:21 +0100 Subject: fix compiler warnings in hurd/trans trans: Fix compiler warnings. * trans/mtab.c (mtab_mark_as_seen): Cast idport to hurd_ihash_value_t. * trans/streamio.c (dev_open): Cast name to char *. --- trans/mtab.c | 2 +- trans/streamio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'trans') diff --git a/trans/mtab.c b/trans/mtab.c index a9928b32..e855080b 100644 --- a/trans/mtab.c +++ b/trans/mtab.c @@ -330,7 +330,7 @@ mtab_mark_as_seen (struct mtab *mtab, mach_port_t node) return TRUE; } - hurd_ihash_add (&mtab->ports_seen, idport, idport); + hurd_ihash_add (&mtab->ports_seen, idport, (hurd_ihash_value_t) idport); return FALSE; } diff --git a/trans/streamio.c b/trans/streamio.c index 507250bd..a80975f3 100644 --- a/trans/streamio.c +++ b/trans/streamio.c @@ -808,7 +808,7 @@ dev_open (const char *name, dev_mode_t mode) phys_reply_writes, MACH_MSG_TYPE_MAKE_SEND); } - err = device_open_request (device_master, phys_reply, mode, name); + err = device_open_request (device_master, phys_reply, mode, (char *) name); if (err) { mach_port_deallocate (mach_task_self (), phys_reply); -- cgit v1.2.3