Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 lint: fix type mismatch for strict bool ...
details: https://anonhg.NetBSD.org/src/rev/0a0f4b19bfc2
branches: trunk
changeset: 979922:0a0f4b19bfc2
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Jan 17 11:28:01 2021 +0000
description:
lint: fix type mismatch for strict bool mode
No functional change.
diffstat:
usr.bin/xlint/lint1/decl.c | 6 +++---
usr.bin/xlint/lint1/func.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 3ad548d052d7 -r 0a0f4b19bfc2 usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c Sun Jan 17 10:50:01 2021 +0000
+++ b/usr.bin/xlint/lint1/decl.c Sun Jan 17 11:28:01 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.124 2021/01/16 16:53:23 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.125 2021/01/17 11:28:01 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.124 2021/01/16 16:53:23 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.125 2021/01/17 11:28:01 rillig Exp $");
#endif
#include <sys/param.h>
@@ -2187,7 +2187,7 @@
while (a1 != NULL && a2 != NULL) {
- if (eqtype(a1->s_type, a2->s_type, true, false, dowarn) == 0)
+ if (!eqtype(a1->s_type, a2->s_type, true, false, dowarn))
return false;
a1 = a1->s_next;
diff -r 3ad548d052d7 -r 0a0f4b19bfc2 usr.bin/xlint/lint1/func.c
--- a/usr.bin/xlint/lint1/func.c Sun Jan 17 10:50:01 2021 +0000
+++ b/usr.bin/xlint/lint1/func.c Sun Jan 17 11:28:01 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: func.c,v 1.60 2021/01/16 16:53:23 rillig Exp $ */
+/* $NetBSD: func.c,v 1.61 2021/01/17 11:28:01 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: func.c,v 1.60 2021/01/16 16:53:23 rillig Exp $");
+__RCSID("$NetBSD: func.c,v 1.61 2021/01/17 11:28:01 rillig Exp $");
#endif
#include <stdlib.h>
@@ -639,7 +639,7 @@
tp = xcalloc(1, sizeof (type_t));
if (tn != NULL) {
tp->t_tspec = tn->tn_type->t_tspec;
- if ((tp->t_isenum = tn->tn_type->t_isenum) != 0)
+ if ((tp->t_isenum = tn->tn_type->t_isenum) != false)
tp->t_enum = tn->tn_type->t_enum;
} else {
tp->t_tspec = INT;
Home |
Main Index |
Thread Index |
Old Index