Module Name: src Committed By: rillig Date: Sat Jun 13 07:36:07 UTC 2020
Modified Files: src/usr.bin/make: str.c Log Message: usr.bin/make: consistently use ++ for incrementing pointers To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/usr.bin/make/str.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/make/str.c diff -u src/usr.bin/make/str.c:1.43 src/usr.bin/make/str.c:1.44 --- src/usr.bin/make/str.c:1.43 Sat Jun 13 07:30:02 2020 +++ src/usr.bin/make/str.c Sat Jun 13 07:36:07 2020 @@ -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 @@ Str_FindSubstring(const char *string, co * substring. */ - for (b = substring; *string != 0; string += 1) { + for (b = substring; *string != 0; string++) { if (*string != *b) continue; a = string; @@ -354,7 +354,7 @@ Str_Match(const char *string, const char * match or we reach the end of the string. */ if (*pattern == '*') { - pattern += 1; + pattern++; if (*pattern == 0) return(1); while (*string != 0) {