From 17afd1df789db615f9a6867688a54e18b8e2f316 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sun, 5 May 2024 18:26:21 -0700 Subject: [PATCH 1/2] cfg.mk: Add checks for 'caddr_t'. * cfg.mk (sc_bsd_caddr): New rule to check for use of the 'caddr_t' type. This is an old BSD type representing a 'void *' or similar. --- cfg.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cfg.mk b/cfg.mk index 1be7e6f9..2966ea15 100644 --- a/cfg.mk +++ b/cfg.mk @@ -90,6 +90,11 @@ sc_unsigned_int: halt='don'\''t use u''_int; instead use unsigned int' \ $(_sc_search_regexp) +sc_bsd_caddr: + @prohibit=caddr''_t \ + halt='don'\''t use caddr''_t; instead use a standard pointer' \ + $(_sc_search_regexp) + sc_assignment_in_if: prohibit='\