Constify the input argument to brk_string.

Patch:		7.106

Submitted by:	Max Okumoto <okumoto@ucsd.edu>
This commit is contained in:
Hartmut Brandt 2005-03-07 16:10:39 +00:00
parent c4487a484d
commit 3cc51195c4
2 changed files with 5 additions and 3 deletions

View File

@ -117,10 +117,12 @@ str_concat(const char *s1, const char *s2, int flags)
* the first word is always the value of the .MAKE variable.
*/
char **
brk_string(char *str, int *store_argc, Boolean expand)
brk_string(const char *str, int *store_argc, Boolean expand)
{
int argc, ch;
char inquote, *p, *start, *t;
char inquote;
const char *p;
char *start, *t;
int len;
/* skip leading space chars. */

View File

@ -57,7 +57,7 @@ struct Buffer;
void str_init(void);
char *str_concat(const char *, const char *, int);
char **brk_string(char *, int *, Boolean);
char **brk_string(const char *, int *, Boolean);
char *MAKEFLAGS_quote(const char *);
char **MAKEFLAGS_break(const char *, int *);
int Str_Match(const char *, const char *);