summaryrefslogtreecommitdiff
path: root/device
diff options
context:
space:
mode:
Diffstat (limited to 'device')
-rw-r--r--device/dev_pager.c4
-rw-r--r--device/ds_routines.c2
-rw-r--r--device/net_io.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/device/dev_pager.c b/device/dev_pager.c
index bc58a15..e0ca2c7 100644
--- a/device/dev_pager.c
+++ b/device/dev_pager.c
@@ -165,7 +165,7 @@ decl_simple_lock_data(,
dev_pager_hash_lock)
#define dev_pager_hash(name_port) \
- (((natural_t)(name_port) & 0xffffff) % DEV_PAGER_HASH_COUNT)
+ (((vm_offset_t)(name_port) & 0xffffff) % DEV_PAGER_HASH_COUNT)
void dev_pager_hash_init(void)
{
@@ -336,7 +336,7 @@ kern_return_t device_pager_data_request(
#endif /* lint */
if (device_pager_debug)
- printf("(device_pager)data_request: pager=%p, offset=0x%x, length=0x%x\n",
+ printf("(device_pager)data_request: pager=%p, offset=0x%lx, length=0x%x\n",
pager, offset, length);
ds = dev_pager_hash_lookup((ipc_port_t)pager);
diff --git a/device/ds_routines.c b/device/ds_routines.c
index 5a6fdd2..68589de 100644
--- a/device/ds_routines.c
+++ b/device/ds_routines.c
@@ -1449,7 +1449,7 @@ static void
ds_no_senders(notification)
mach_no_senders_notification_t *notification;
{
- printf("ds_no_senders called! device_port=0x%x count=%d\n",
+ printf("ds_no_senders called! device_port=0x%lx count=%d\n",
notification->not_header.msgh_remote_port,
notification->not_count);
}
diff --git a/device/net_io.c b/device/net_io.c
index 52a0716..4ebf996 100644
--- a/device/net_io.c
+++ b/device/net_io.c
@@ -394,7 +394,7 @@ int net_add_q_info (ipc_port_t rcv_port);
int bpf_match (
net_hash_header_t hash,
int n_keys,
- unsigned int *keys,
+ unsigned long *keys,
net_hash_entry_t **hash_headpp,
net_hash_entry_t *entpp);
@@ -1638,7 +1638,7 @@ bpf_do_filter(infp, p, wirelen, header, hlen, hash_headpp, entpp)
register unsigned long A, X;
register int k;
- long mem[BPF_MEMWORDS];
+ unsigned long mem[BPF_MEMWORDS];
/* Generic pointer to either HEADER or P according to the specified offset. */
char *data = NULL;
@@ -2032,7 +2032,7 @@ int
bpf_match (hash, n_keys, keys, hash_headpp, entpp)
net_hash_header_t hash;
register int n_keys;
- register unsigned int *keys;
+ register unsigned long *keys;
net_hash_entry_t **hash_headpp, *entpp;
{
register net_hash_entry_t head, entp;