summaryrefslogtreecommitdiff
path: root/xen/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'xen/net.c')
-rw-r--r--xen/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/net.c b/xen/net.c
index 7181d780..5a3f90d9 100644
--- a/xen/net.c
+++ b/xen/net.c
@@ -395,7 +395,7 @@ void hyp_net_init(void) {
/* Allocate an event channel and give it to backend. */
nd->evt = evt = hyp_event_channel_alloc(domid);
- i = sprintf(port_name, "%lu", evt);
+ i = sprintf(port_name, "%u", evt);
c = hyp_store_write(t, port_name, 5, VIF_PATH, "/", vifs[n], "/", "event-channel");
if (!c)
panic("eth: couldn't store event channel for VIF %s (%s)", vifs[n], hyp_store_error);
@@ -538,7 +538,7 @@ static io_return_t
device_open (ipc_port_t reply_port, mach_msg_type_name_t reply_port_type,
dev_mode_t mode, char *name, device_t *devp /* out */)
{
- int i, n, err = 0;
+ int i, n;
ipc_port_t port, notify;
struct net_data *nd;