Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make make(1): remove redundant const declarations fo...



details:   https://anonhg.NetBSD.org/src/rev/45d528bf8d08
branches:  trunk
changeset: 979254:45d528bf8d08
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Dec 20 18:23:24 2020 +0000

description:
make(1): remove redundant const declarations for parameters

diffstat:

 usr.bin/make/parse.c |   6 +++---
 usr.bin/make/var.c   |  10 +++++-----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (58 lines):

diff -r 5158ab540beb -r 45d528bf8d08 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Sun Dec 20 18:13:50 2020 +0000
+++ b/usr.bin/make/parse.c      Sun Dec 20 18:23:24 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.507 2020/12/20 14:52:16 rillig Exp $       */
+/*     $NetBSD: parse.c,v 1.508 2020/12/20 18:23:24 rillig Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -117,7 +117,7 @@
 #include "pathnames.h"
 
 /*     "@(#)parse.c    8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.507 2020/12/20 14:52:16 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.508 2020/12/20 18:23:24 rillig Exp $");
 
 /* types and constants */
 
@@ -2724,7 +2724,7 @@
  * with a single space.
  */
 static void
-UnescapeBackslash(char *const line, char *start)
+UnescapeBackslash(char *line, char *start)
 {
        char *src = start;
        char *dst = start;
diff -r 5158ab540beb -r 45d528bf8d08 usr.bin/make/var.c
--- a/usr.bin/make/var.c        Sun Dec 20 18:13:50 2020 +0000
+++ b/usr.bin/make/var.c        Sun Dec 20 18:23:24 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.750 2020/12/20 18:13:50 rillig Exp $ */
+/*     $NetBSD: var.c,v 1.751 2020/12/20 18:23:24 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -131,7 +131,7 @@
 #include "metachar.h"
 
 /*     "@(#)var.c      8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.750 2020/12/20 18:13:50 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.751 2020/12/20 18:23:24 rillig Exp $");
 
 typedef enum VarFlags {
        VAR_NONE        = 0,
@@ -3488,9 +3488,9 @@
 }
 
 static ApplyModifierResult
-ApplySingleModifier(ApplyModifiersState *const st, const char *const mod,
-                   char const endc, const char **pp, char *val,
-                   char **out_val, void **const inout_freeIt)
+ApplySingleModifier(ApplyModifiersState *st, const char *mod, char endc,
+                   const char **pp, char *val, char **out_val,
+                   void **inout_freeIt)
 {
        ApplyModifierResult res;
        const char *p = *pp;



Home | Main Index | Thread Index | Old Index