Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make usr.bin/make: consistently use ++ for increment...



details:   https://anonhg.NetBSD.org/src/rev/45739e5d3a55
branches:  trunk
changeset: 934450:45739e5d3a55
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Jun 13 07:36:07 2020 +0000

description:
usr.bin/make: consistently use ++ for incrementing pointers

diffstat:

 usr.bin/make/str.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 32da1a070f4e -r 45739e5d3a55 usr.bin/make/str.c
--- a/usr.bin/make/str.c        Sat Jun 13 07:30:02 2020 +0000
+++ b/usr.bin/make/str.c        Sat Jun 13 07:36:07 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: str.c,v 1.43 2020/06/13 07:30:02 rillig Exp $  */
+/*     $NetBSD: str.c,v 1.44 2020/06/13 07:36:07 rillig Exp $  */
 
 /*-
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: str.c,v 1.43 2020/06/13 07:30:02 rillig Exp $";
+static char rcsid[] = "$NetBSD: str.c,v 1.44 2020/06/13 07:36:07 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char     sccsid[] = "@(#)str.c  5.8 (Berkeley) 6/1/90";
 #else
-__RCSID("$NetBSD: str.c,v 1.43 2020/06/13 07:30:02 rillig Exp $");
+__RCSID("$NetBSD: str.c,v 1.44 2020/06/13 07:36:07 rillig Exp $");
 #endif
 #endif                         /* not lint */
 #endif
@@ -304,7 +304,7 @@
         * substring.
         */
 
-       for (b = substring; *string != 0; string += 1) {
+       for (b = substring; *string != 0; string++) {
                if (*string != *b)
                        continue;
                a = string;
@@ -354,7 +354,7 @@
                 * match or we reach the end of the string.
                 */
                if (*pattern == '*') {
-                       pattern += 1;
+                       pattern++;
                        if (*pattern == 0)
                                return(1);
                        while (*string != 0) {



Home | Main Index | Thread Index | Old Index