diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-10-28 23:33:57 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-10-28 23:33:57 +0000 |
commit | 1d4b44fe4a5179218b67807b2f8a72b1ea5e30da (patch) | |
tree | e236724d2a28f3e60d37eeb142b7049cd93427bb /usr.bin/make/job.c | |
parent | 46972a1cd987b2dea0a141dde525fdc000ab59d2 (diff) | |
download | FreeBSD-src-1d4b44fe4a5179218b67807b2f8a72b1ea5e30da.zip FreeBSD-src-1d4b44fe4a5179218b67807b2f8a72b1ea5e30da.tar.gz |
Split var.c into var.c and var_modify.c and move all the modification funcs
to var_modify.c, for readability. constify some low hanging fruit (string
manipulation functions) and the upper layers appropriately. No longer use
the private strstr(3) implementation, while changing string code.
Tested by: lots of successful make buildworld.
Diffstat (limited to 'usr.bin/make/job.c')
-rw-r--r-- | usr.bin/make/job.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index b25edd8..e7d0450 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -1877,7 +1877,7 @@ JobOutput(Job *job, char *cp, char *endp, int msg) char *ecp; if (commandShell->noPrint) { - ecp = Str_FindSubstring(cp, commandShell->noPrint); + ecp = strstr(cp, commandShell->noPrint); while (ecp != NULL) { if (cp != ecp) { *ecp = '\0'; @@ -1905,7 +1905,7 @@ JobOutput(Job *job, char *cp, char *endp, int msg) while (*cp == ' ' || *cp == '\t' || *cp == '\n') { cp++; } - ecp = Str_FindSubstring(cp, commandShell->noPrint); + ecp = strstr(cp, commandShell->noPrint); } else { return cp; } |