Module Name: src
Committed By: rillig
Date: Fri Oct 4 08:45:46 UTC 2024
Modified Files:
src/libexec/httpd: Makefile bozohttpd.c
Log Message:
libexec/httpd: fix or suppress lint warnings
No binary change.
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/libexec/httpd/Makefile
cvs rdiff -u -r1.147 -r1.148 src/libexec/httpd/bozohttpd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/httpd/Makefile
diff -u src/libexec/httpd/Makefile:1.32 src/libexec/httpd/Makefile:1.33
--- src/libexec/httpd/Makefile:1.32 Tue May 9 01:47:21 2023
+++ src/libexec/httpd/Makefile Fri Oct 4 08:45:46 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2023/05/09 01:47:21 christos Exp $
+# $NetBSD: Makefile,v 1.33 2024/10/04 08:45:46 rillig Exp $
#
# $eterna: Makefile,v 1.30 2010/07/11 00:34:27 mrg Exp $
#
@@ -39,6 +39,9 @@ LDADD= -lblocklist -lcrypt -llua -lm
DPADD= ${LIBBLOCKLIST} ${LIBCRYPT} ${LIBLUA} ${LIBM}
WARNS?= 4
+LINTFLAGS+= -X 161 # constant in conditional context
+LINTFLAGS+= -X 193 # statement not reached
+LINTFLAGS+= -X 239 # constant operand to '!'
.if defined(.OS.MAKE)
OPSYS= ${.OS.MAKE}
Index: src/libexec/httpd/bozohttpd.c
diff -u src/libexec/httpd/bozohttpd.c:1.147 src/libexec/httpd/bozohttpd.c:1.148
--- src/libexec/httpd/bozohttpd.c:1.147 Sun Apr 28 17:12:30 2024
+++ src/libexec/httpd/bozohttpd.c Fri Oct 4 08:45:46 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: bozohttpd.c,v 1.147 2024/04/28 17:12:30 maya Exp $ */
+/* $NetBSD: bozohttpd.c,v 1.148 2024/10/04 08:45:46 rillig Exp $ */
/* $eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $ */
@@ -1083,7 +1083,7 @@ handle_redirect(bozo_httpreq_t *request,
#endif /* !NO_USER_SUPPORT */
if (absolute) {
- char *sep = NULL;
+ const char *sep = NULL;
const char *s;
/*