Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/common lint: remove unnecessary includes



details:   https://anonhg.NetBSD.org/src/rev/2cf0f784a032
branches:  trunk
changeset: 1023344:2cf0f784a032
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Sep 04 10:26:44 2021 +0000

description:
lint: remove unnecessary includes

The type definitions used to depend on the host's platform
characteristics once, which required <limits.h>.

diffstat:

 usr.bin/xlint/common/inittyp.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (23 lines):

diff -r 684769574739 -r 2cf0f784a032 usr.bin/xlint/common/inittyp.c
--- a/usr.bin/xlint/common/inittyp.c    Sat Sep 04 10:09:19 2021 +0000
+++ b/usr.bin/xlint/common/inittyp.c    Sat Sep 04 10:26:44 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inittyp.c,v 1.26 2021/08/28 13:02:25 rillig Exp $      */
+/*     $NetBSD: inittyp.c,v 1.27 2021/09/04 10:26:44 rillig Exp $      */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,12 +37,9 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: inittyp.c,v 1.26 2021/08/28 13:02:25 rillig Exp $");
+__RCSID("$NetBSD: inittyp.c,v 1.27 2021/09/04 10:26:44 rillig Exp $");
 #endif
 
-#include <limits.h>
-#include <stdlib.h>
-
 #if defined(IS_LINT1)
 #include "lint1.h"
 #else



Home | Main Index | Thread Index | Old Index