Module Name: src
Committed By: mrg
Date: Wed Jun 22 04:01:09 UTC 2011
Modified Files:
src/sys/rump/net/lib/libvirtif: if_virt.c
Log Message:
fix an operator precedence error picked up by GCC 4.5.3. real bug.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/rump/net/lib/libvirtif/if_virt.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/net/lib/libvirtif/if_virt.c
diff -u src/sys/rump/net/lib/libvirtif/if_virt.c:1.22 src/sys/rump/net/lib/libvirtif/if_virt.c:1.23
--- src/sys/rump/net/lib/libvirtif/if_virt.c:1.22 Wed Dec 1 15:13:24 2010
+++ src/sys/rump/net/lib/libvirtif/if_virt.c Wed Jun 22 04:01:08 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: if_virt.c,v 1.22 2010/12/01 15:13:24 pooka Exp $ */
+/* $NetBSD: if_virt.c,v 1.23 2011/06/22 04:01:08 mrg Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_virt.c,v 1.22 2010/12/01 15:13:24 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_virt.c,v 1.23 2011/06/22 04:01:08 mrg Exp $");
#include <sys/param.h>
#include <sys/condvar.h>
@@ -319,7 +319,7 @@
mutex_enter(&sc->sc_mtx);
KERNEL_LOCK(1, NULL);
while (!sc->sc_dying) {
- if (!ifp->if_flags & IFF_RUNNING) {
+ if (!(ifp->if_flags & IFF_RUNNING)) {
cv_wait(&sc->sc_cv, &sc->sc_mtx);
continue;
}