Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/net/lib/libvirtif Adjust for rump_virtif_create() r...



details:   https://anonhg.NetBSD.org/src/rev/422ebbb221cf
branches:  trunk
changeset: 787796:422ebbb221cf
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jul 03 19:23:46 2013 +0000

description:
Adjust for rump_virtif_create() removal.  Incidentally, this reduces
the number of exported symbols by one (which is useful for phase 2).

diffstat:

 sys/rump/net/lib/libvirtif/if_virt.c |  15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diffs (43 lines):

diff -r ef311569e8a8 -r 422ebbb221cf sys/rump/net/lib/libvirtif/if_virt.c
--- a/sys/rump/net/lib/libvirtif/if_virt.c      Wed Jul 03 19:22:21 2013 +0000
+++ b/sys/rump/net/lib/libvirtif/if_virt.c      Wed Jul 03 19:23:46 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_virt.c,v 1.33 2013/07/03 15:08:01 pooka Exp $       */
+/*     $NetBSD: if_virt.c,v 1.34 2013/07/03 19:23:46 pooka Exp $       */
 
 /*
  * Copyright (c) 2008, 2013 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_virt.c,v 1.33 2013/07/03 15:08:01 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_virt.c,v 1.34 2013/07/03 19:23:46 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/condvar.h>
@@ -87,8 +87,8 @@
 struct if_clone virtif_cloner =
     IF_CLONE_INITIALIZER(VIRTIF_BASE, virtif_clone, virtif_unclone);
 
-int
-rump_virtif_create(int num)
+static int
+virtif_clone(struct if_clone *ifc, int unit)
 {
        struct virtif_sc *sc;
        struct virtif_user *viu;
@@ -148,13 +148,6 @@
 }
 
 static int
-virtif_clone(struct if_clone *ifc, int unit)
-{
-
-       return rump_virtif_create(unit);
-}
-
-static int
 virtif_unclone(struct ifnet *ifp)
 {
        struct virtif_sc *sc = ifp->if_softc;



Home | Main Index | Thread Index | Old Index