Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Assert equality, not assignment, in selrecord.



details:   https://anonhg.NetBSD.org/src/rev/09e66b806c41
branches:  trunk
changeset: 784362:09e66b806c41
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jan 26 19:38:17 2013 +0000

description:
Assert equality, not assignment, in selrecord.

Code inspection suggests that this fix is not likely to reveal any
latent problems.

diffstat:

 sys/kern/sys_select.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 45fe8ba423c7 -r 09e66b806c41 sys/kern/sys_select.c
--- a/sys/kern/sys_select.c     Sat Jan 26 19:05:11 2013 +0000
+++ b/sys/kern/sys_select.c     Sat Jan 26 19:38:17 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_select.c,v 1.36 2011/08/29 00:39:16 rmind Exp $    */
+/*     $NetBSD: sys_select.c,v 1.37 2013/01/26 19:38:17 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc.
@@ -84,7 +84,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_select.c,v 1.36 2011/08/29 00:39:16 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_select.c,v 1.37 2013/01/26 19:38:17 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -596,7 +596,7 @@
 
        if (other == selector) {
                /* 1. We (selector) already claimed to be the first LWP. */
-               KASSERT(sip->sel_cluster = sc);
+               KASSERT(sip->sel_cluster == sc);
        } else if (other == NULL) {
                /*
                 * 2. No first LWP, therefore we (selector) are the first.



Home | Main Index | Thread Index | Old Index