summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-02 22:43:07 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-17 23:50:16 +0200
commit97648ebe9b1f0ffcdb0d2ff2f33a89d46ec65796 (patch)
tree17123e23f156b9c4159677b59ea671c0114a0c01
parent8fa39e506993c3f0ddd4f9cce6e9d9dc1498ddfb (diff)
2002-06-02 Roland McGrath <roland@frob.com>
* oskit/ds_routines.c (DEV_PTR_HASH): unsigned int -> uintptr_t (ds_device_write): unsigned int -> mach_msg_number_t
-rw-r--r--oskit/ds_routines.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/oskit/ds_routines.c b/oskit/ds_routines.c
index ae9b2b96..5643f652 100644
--- a/oskit/ds_routines.c
+++ b/oskit/ds_routines.c
@@ -69,7 +69,7 @@ decl_simple_lock_data(, io_done_list_lock)
open device ports (device_t). */
#define NDEVHASH 7
-#define DEV_PTR_HASH(com) ((unsigned int) (com) % NDEVHASH)
+#define DEV_PTR_HASH(com) ((uintptr_t) (com) % NDEVHASH)
queue_head_t dev_hash_table[NDEVHASH];
/*
@@ -692,7 +692,7 @@ ds_device_close (device_t dev)
io_return_t
ds_device_write (device_t dev, ipc_port_t reply_port,
mach_msg_type_name_t reply_port_type, dev_mode_t mode,
- recnum_t recnum, io_buf_ptr_t data, unsigned int count,
+ recnum_t recnum, io_buf_ptr_t data, mach_msg_number_t count,
int *bytes_written)
{
if (dev == DEVICE_NULL)