diff options
author | harti <harti@FreeBSD.org> | 2004-12-08 08:18:13 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-12-08 08:18:13 +0000 |
commit | 22a68a12ee3c450d798bc8a27489bd87c46d0346 (patch) | |
tree | d0caccb8ef93d7770255b16d9ca1933d366c2a25 /usr.bin | |
parent | bde7bbf9ad62c24bcf5c8ca7fc0423db69e01699 (diff) | |
download | FreeBSD-src-22a68a12ee3c450d798bc8a27489bd87c46d0346.zip FreeBSD-src-22a68a12ee3c450d798bc8a27489bd87c46d0346.tar.gz |
Constify some calls of Buf_AddBytes.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/make/str.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/str.c b/usr.bin/make/str.c index 7a1dd6c..4cbd488 100644 --- a/usr.bin/make/str.c +++ b/usr.bin/make/str.c @@ -425,14 +425,14 @@ Str_SYSVSubst(Buffer buf, const char *pat, const char *src, int len) if ((m = strchr(pat, '%')) != NULL) { /* Copy the prefix */ - Buf_AddBytes(buf, m - pat, (Byte *)pat); + Buf_AddBytes(buf, m - pat, (const Byte *)pat); /* skip the % */ pat = m + 1; } /* Copy the pattern */ - Buf_AddBytes(buf, len, (Byte *)src); + Buf_AddBytes(buf, len, (const Byte *)src); /* append the rest */ - Buf_AddBytes(buf, strlen(pat), (Byte *)pat); + Buf_AddBytes(buf, strlen(pat), (const Byte *)pat); } |