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 Fix compile error.
details: https://anonhg.NetBSD.org/src/rev/c84b8b624172
branches: trunk
changeset: 357024:c84b8b624172
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Oct 23 13:12:23 2017 +0000
description:
Fix compile error.
diffstat:
sys/rump/net/lib/libvirtif/if_virt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 67782c284a68 -r c84b8b624172 sys/rump/net/lib/libvirtif/if_virt.c
--- a/sys/rump/net/lib/libvirtif/if_virt.c Mon Oct 23 13:11:17 2017 +0000
+++ b/sys/rump/net/lib/libvirtif/if_virt.c Mon Oct 23 13:12:23 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_virt.c,v 1.55 2017/10/23 09:24:34 msaitoh Exp $ */
+/* $NetBSD: if_virt.c,v 1.56 2017/10/23 13:12:23 msaitoh 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.55 2017/10/23 09:24:34 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_virt.c,v 1.56 2017/10/23 13:12:23 msaitoh Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -143,13 +143,13 @@
goto fail_2;
}
snprintf(sc->sc_linkstr, LINKSTRNUMLEN, "%d", sc->sc_num);
-#undef LINKSTRNUMLEN
error = virtif_create(ifp);
if (error) {
fail_2:
if_detach(ifp);
if (sc->sc_linkstr != NULL)
kmem_free(sc->sc_linkstr, LINKSTRNUMLEN);
+#undef LINKSTRNUMLEN
fail_1:
kmem_free(sc, sizeof(*sc));
ifp->if_softc = NULL;
Home |
Main Index |
Thread Index |
Old Index