Eliminate build breakage due to warnings about const.
This commit is contained in:
parent
13f8bb7143
commit
075775c9e4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152407
@ -111,7 +111,7 @@ static void checkfiles(const char *, const char *);
|
||||
#define ARGLISTLEN 20
|
||||
#define FIXEDARGS 2
|
||||
|
||||
static const char *arglist[ARGLISTLEN];
|
||||
static char *arglist[ARGLISTLEN];
|
||||
static int argcount = FIXEDARGS;
|
||||
|
||||
|
||||
@ -931,7 +931,7 @@ addarg(const char *cp)
|
||||
crash();
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
arglist[argcount++] = cp;
|
||||
arglist[argcount++] = strdup(cp);
|
||||
|
||||
}
|
||||
|
||||
@ -943,7 +943,7 @@ putarg(int place, const char *cp)
|
||||
crash();
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
arglist[place] = cp;
|
||||
arglist[place] = strdup(cp);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user