Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/base64 base64: fix lint warning about 'strchr' disca...



details:   https://anonhg.NetBSD.org/src/rev/2ccc1ef90fc9
branches:  trunk
changeset: 1023119:2ccc1ef90fc9
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Aug 25 22:43:20 2021 +0000

description:
base64: fix lint warning about 'strchr' discarding 'const'

No change to the resulting binary.

diffstat:

 usr.bin/base64/base64.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3ca81a86adca -r 2ccc1ef90fc9 usr.bin/base64/base64.c
--- a/usr.bin/base64/base64.c   Wed Aug 25 22:26:30 2021 +0000
+++ b/usr.bin/base64/base64.c   Wed Aug 25 22:43:20 2021 +0000
@@ -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 @@
 {
        int state, c;
        uint8_t b, out;
-       char *pos;
+       const char *pos;
 
        state = 0;
        out = 0;



Home | Main Index | Thread Index | Old Index