[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] mini-os: Fix outdated init_netfront() calls



Commit 1b8ed31f changed the init_netfront() declaration. This patch fixes a
couple of calls that were overlooked for that initial commit.

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 netfront.c | 2 +-
 test.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/netfront.c b/netfront.c
index 58eb55e..205484b 100644
--- a/netfront.c
+++ b/netfront.c
@@ -576,7 +576,7 @@ error:
 int netfront_tap_open(char *nodename) {
     struct netfront_dev *dev;
 
-    dev = init_netfront(nodename, NETIF_SELECT_RX, NULL, NULL);
+    dev = init_netfront(nodename, NETIF_SELECT_RX, NULL, NULL, NULL, NULL);
     if (!dev) {
        printk("TAP open failed\n");
        errno = EIO;
diff --git a/test.c b/test.c
index 42a2666..2e5f7f9 100644
--- a/test.c
+++ b/test.c
@@ -91,7 +91,7 @@ static struct semaphore net_sem = 
__SEMAPHORE_INITIALIZER(net_sem, 0);
 
 static void netfront_thread(void *p)
 {
-    net_dev = init_netfront(NULL, NULL, NULL, NULL);
+    net_dev = init_netfront(NULL, NULL, NULL, NULL, NULL, NULL);
     up(&net_sem);
 }
 #endif
-- 
2.20.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.