Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/citrus/modules Use boolean AND instead of bitwise o...



details:   https://anonhg.NetBSD.org/src/rev/c715b437b4a3
branches:  trunk
changeset: 770725:c715b437b4a3
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Oct 30 21:48:27 2011 +0000

description:
Use boolean AND instead of bitwise one in _DIAGASSERT.
>From Henning Petersen in PR 45518.

diffstat:

 lib/libc/citrus/modules/citrus_mapper_std.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e0b30661d216 -r c715b437b4a3 lib/libc/citrus/modules/citrus_mapper_std.c
--- a/lib/libc/citrus/modules/citrus_mapper_std.c       Sun Oct 30 21:33:40 2011 +0000
+++ b/lib/libc/citrus/modules/citrus_mapper_std.c       Sun Oct 30 21:48:27 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_mapper_std.c,v 1.8 2006/09/11 13:06:33 tnozaki Exp $    */
+/*     $NetBSD: citrus_mapper_std.c,v 1.9 2011/10/30 21:48:27 wiz Exp $        */
 
 /*-
  * Copyright (c)2003, 2006 Citrus Project,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_mapper_std.c,v 1.8 2006/09/11 13:06:33 tnozaki Exp $");
+__RCSID("$NetBSD: citrus_mapper_std.c,v 1.9 2011/10/30 21:48:27 wiz Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -426,7 +426,7 @@
 {
        struct _citrus_mapper_std *ms;
 
-       _DIAGASSERT(cm!=NULL & cm->cm_closure!=NULL);
+       _DIAGASSERT(cm!=NULL && cm->cm_closure!=NULL);
 
        ms = cm->cm_closure;
        if (ms->ms_uninit)



Home | Main Index | Thread Index | Old Index