Module Name: src
Committed By: rillig
Date: Wed Aug 25 22:43:20 UTC 2021
Modified Files:
src/usr.bin/base64: base64.c
Log Message:
base64: fix lint warning about 'strchr' discarding 'const'
No change to the resulting binary.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/base64/base64.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/base64/base64.c
diff -u src/usr.bin/base64/base64.c:1.3 src/usr.bin/base64/base64.c:1.4
--- src/usr.bin/base64/base64.c:1.3 Fri Aug 14 13:40:25 2020
+++ src/usr.bin/base64/base64.c Wed Aug 25 22:43:20 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: base64.c,v 1.3 2020/08/14 13:40:25 christos Exp $ */
+/* $NetBSD: base64.c,v 1.4 2021/08/25 22:43:20 rillig Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: base64.c,v 1.3 2020/08/14 13:40:25 christos Exp $");
+__RCSID("$NetBSD: base64.c,v 1.4 2021/08/25 22:43:20 rillig Exp $");
#include <ctype.h>
#include <errno.h>
@@ -132,7 +132,7 @@ b64_decode(FILE *fout, FILE *fin, bool i
{
int state, c;
uint8_t b, out;
- char *pos;
+ const char *pos;
state = 0;
out = 0;