Module Name: src Committed By: rillig Date: Mon Feb 15 07:40:18 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove redundant comment That comment was useful when there was no function is_null_pointer. Back then, the code for testing a null pointer was written in-line, which made it really hard to see what's going on. This is no longer the case. To generate a diff of this commit: cvs rdiff -u -r1.206 -r1.207 src/usr.bin/xlint/lint1/tree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/xlint/lint1/tree.c diff -u src/usr.bin/xlint/lint1/tree.c:1.206 src/usr.bin/xlint/lint1/tree.c:1.207 --- src/usr.bin/xlint/lint1/tree.c:1.206 Mon Feb 15 07:36:40 2021 +++ src/usr.bin/xlint/lint1/tree.c Mon Feb 15 07:40:18 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: tree.c,v 1.206 2021/02/15 07:36:40 rillig Exp $ */ +/* $NetBSD: tree.c,v 1.207 2021/02/15 07:40:18 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: tree.c,v 1.206 2021/02/15 07:36:40 rillig Exp $"); +__RCSID("$NetBSD: tree.c,v 1.207 2021/02/15 07:40:18 rillig Exp $"); #endif #include <float.h> @@ -1049,7 +1049,6 @@ typeok_colon(const mod_t *mp, if (lt == UNION && rt == UNION && ltp->t_str == rtp->t_str) return true; - /* combination of any pointer and null pointer is ok */ if (lt == PTR && is_null_pointer(rn)) return true; if (rt == PTR && is_null_pointer(ln))