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 an operator precedence error ...
details: https://anonhg.NetBSD.org/src/rev/88d1e9d82d30
branches: trunk
changeset: 766416:88d1e9d82d30
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Jun 22 04:01:08 2011 +0000
description:
fix an operator precedence error picked up by GCC 4.5.3. real bug.
diffstat:
sys/rump/net/lib/libvirtif/if_virt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 575c55284637 -r 88d1e9d82d30 sys/rump/net/lib/libvirtif/if_virt.c
--- a/sys/rump/net/lib/libvirtif/if_virt.c Wed Jun 22 04:00:43 2011 +0000
+++ b/sys/rump/net/lib/libvirtif/if_virt.c Wed Jun 22 04:01:08 2011 +0000
@@ -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;
}
Home |
Main Index |
Thread Index |
Old Index